From 278ff1d8af9e37f3b1f24ead3e540a7da2f02291 Mon Sep 17 00:00:00 2001 From: Grant Firl Date: Tue, 7 Jan 2020 19:06:47 +0000 Subject: [PATCH] For Hera: put pandas matplotlib register line in a try block; switch to using PDF file format --- scm/etc/scripts/gmtb_scm_analysis.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scm/etc/scripts/gmtb_scm_analysis.py b/scm/etc/scripts/gmtb_scm_analysis.py index b6870b5f8..8be16a5bf 100755 --- a/scm/etc/scripts/gmtb_scm_analysis.py +++ b/scm/etc/scripts/gmtb_scm_analysis.py @@ -18,12 +18,15 @@ Rv = 461.0 g = 9.81 -plot_ext = '.png' #.pdf, .eps, .ps, .png (.png is fastest, but raster) +plot_ext = '.pdf' #.pdf, .eps, .ps, .png (.png is fastest, but raster) reload(gspr) reload(gsro) -pd.plotting.register_matplotlib_converters() +try: + pd.plotting.register_matplotlib_converters() +except (AttributeError): + print "Warning: The version of the pandas package you are using may lead to Future Warnings being generated. These can be ignored for now." #subroutine for printing progress to the command line def print_progress(n_complete, n_total):