Commit ed2108d9 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Merge branch 'nox' into 'master'

workaround for matplotlib on X-less remote logins

See merge request !2
parents 720f57fa dd7a6ed6
......@@ -6,7 +6,17 @@ import glob
import subprocess
import numpy as np
import matplotlib.pyplot as plt
# workaround for matplotlib on X-less remote logins
if os.environ.has_key('DISPLAY'):
import matplotlib.pyplot as plt
else:'No $DISPLAY environment variable found, \
so importing matplotlib.pyplot with non-interactive "Agg" backend.')
import matplotlib
import matplotlib.pyplot as plt
import scipy.special
import scipy.optimize
import lal
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment