aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2020-05-25 09:31:16 -0500
committertlatorre <tlatorre@uchicago.edu>2020-05-25 09:31:16 -0500
commit913305f4d26e7da854d7e7e0680390c7ea5bac1a (patch)
treebaa0c4e173ee19b75effb8647014f05b4735f053
parent08774113d0a5f3f58bd6dbe6996c871b12495309 (diff)
downloadsddm-913305f4d26e7da854d7e7e0680390c7ea5bac1a.tar.gz
sddm-913305f4d26e7da854d7e7e0680390c7ea5bac1a.tar.bz2
sddm-913305f4d26e7da854d7e7e0680390c7ea5bac1a.zip
don't import from .plot in plot_energy.py
This commit updates the plot_energy.py module to not import from plot globally since that means matplotlib gets pulled in by submit-grid-jobs and that causes errors on the grid login nodes.
-rwxr-xr-xutils/sddm/plot_energy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/sddm/plot_energy.py b/utils/sddm/plot_energy.py
index 88950f7..4457dc0 100755
--- a/utils/sddm/plot_energy.py
+++ b/utils/sddm/plot_energy.py
@@ -20,7 +20,6 @@ from scipy.stats import poisson
from scipy.special import spence
from .dc import DC_MUON, DC_JUNK, DC_CRATE_ISOTROPY, DC_QVNHIT, DC_NECK, DC_FLASHER, DC_ESUM, DC_OWL, DC_OWL_TRIGGER, DC_FTS, DC_ITC, DC_BREAKDOWN
from . import grouper, print_warning, AV_RADIUS, PSUP_RADIUS
-from .plot import despine
import pandas as pd
# Fermi constant
@@ -201,6 +200,7 @@ def prompt_event(ev):
def plot_corner_plot(ev, title, save=None):
import matplotlib.pyplot as plt
+ from .plot import despine
variables = ['r_psup','psi','z','udotr']
labels = [r'$(r/r_\mathrm{PSUP})^3$',r'$\psi$','z',r'$\vec{u}\cdot\vec{r}$']
limits = [(0,1),(0,10),(-840,840),(-1,1)]