There will be a short amount of downtime, for git.ligo.org, docs.ligo.org, and chat.ligo.org, starting around approximately 10am CDT on Tuesday 18th June 2019. This is to enable access controls for GitLab Pages. More information can be found here.

Commit 84c11172 authored by Jameson Graef Rollins's avatar Jameson Graef Rollins

catch matplotlib error import more gracefully

parent 82dee4a1
Pipeline #29231 passed with stages
in 53 seconds
......@@ -122,7 +122,11 @@ def main():
# set this opportunistically.
import matplotlib
matplotlib.use('AGG')
from matplotlib import pyplot as plt
try:
from matplotlib import pyplot as plt
except RuntimeError:
logging.warning("no display, plotting disabled.")
args.plot = False
if args.matlab:
gwinc = gwinc_matlab.gwinc_matlab
......
Markdown is supported
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