Commit abdfd7c757b5da901c67fd8ed41e2fda4ba7b80b

Authored by Josh Cardenzana
1 parent 76de5376

Change import order in 'show_spectrum.py' to prevent errors

These errors showed up when importing matplotlib before gammalib
Showing 1 changed file with 2 additions and 2 deletions
examples/show_spectrum.py
@@ -19,6 +19,8 @@ @@ -19,6 +19,8 @@
19 # 19 #
20 # ========================================================================== 20 # ==========================================================================
21 import sys 21 import sys
  22 +import gammalib
  23 +import cscripts
22 try: 24 try:
23 import matplotlib.pyplot as plt 25 import matplotlib.pyplot as plt
24 plt.figure() 26 plt.figure()
@@ -31,8 +33,6 @@ try: @@ -31,8 +33,6 @@ try:
31 except ImportError: 33 except ImportError:
32 print('This script needs the "numpy" module') 34 print('This script needs the "numpy" module')
33 sys.exit() 35 sys.exit()
34 -import gammalib  
35 -import cscripts  
36 36
37 37
38 # ===================================== # 38 # ===================================== #