Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Gregory Ashton
PyFstat
Commits
b462feba
Commit
b462feba
authored
Jan 11, 2018
by
David Keitel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
displayless matplotlib import workaround also in helper_functions.py
parent
26768adf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
pyfstat/helper_functions.py
pyfstat/helper_functions.py
+10
-3
No files found.
pyfstat/helper_functions.py
View file @
b462feba
...
...
@@ -11,12 +11,19 @@ import inspect
import
peakutils
from
functools
import
wraps
from
scipy.stats.distributions
import
ncx2
import
numpy
as
np
import
lal
import
lalpulsar
import
matplotlib.pyplot
as
plt
import
numpy
as
np
# workaround for matplotlib on X-less remote logins
if
'DISPLAY'
in
os
.
environ
:
import
matplotlib.pyplot
as
plt
else
:
logging
.
info
(
'No $DISPLAY environment variable found, so importing
\
matplotlib.pyplot with non-interactive "Agg" backend.'
)
import
matplotlib
matplotlib
.
use
(
'Agg'
)
import
matplotlib.pyplot
as
plt
def
set_up_optional_tqdm
():
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment