From abdfd7c757b5da901c67fd8ed41e2fda4ba7b80b Mon Sep 17 00:00:00 2001 From: Josh Cardenzana Date: Mon, 16 Dec 2019 12:31:20 +0100 Subject: [PATCH] Change import order in 'show_spectrum.py' to prevent errors These errors showed up when importing matplotlib before gammalib --- examples/show_spectrum.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/show_spectrum.py b/examples/show_spectrum.py index f13bde9..b900d62 100755 --- a/examples/show_spectrum.py +++ b/examples/show_spectrum.py @@ -19,6 +19,8 @@ # # ========================================================================== import sys +import gammalib +import cscripts try: import matplotlib.pyplot as plt plt.figure() @@ -31,8 +33,6 @@ try: except ImportError: print('This script needs the "numpy" module') sys.exit() -import gammalib -import cscripts # ===================================== # -- libgit2 0.21.4