Commit f11482c09ba380369b7c8bf44365e953bb83dcf5

Authored by Jürgen Knödlseder
1 parent a1592060

Change order of imports in show_spectrum.py (cf. Martina Cardillo)

Showing 1 changed file with 3 additions and 3 deletions
examples/show_spectrum.py
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 # ========================================================================== 2 # ==========================================================================
3 # Display spectrum generated by csspec 3 # Display spectrum generated by csspec
4 # 4 #
5 -# Copyright (C) 2015-2017 Juergen Knoedlseder 5 +# Copyright (C) 2015-2019 Juergen Knoedlseder
6 # 6 #
7 # This program is free software: you can redistribute it and/or modify 7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by 8 # it under the terms of the GNU General Public License as published by
@@ -19,8 +19,6 @@ @@ -19,8 +19,6 @@
19 # 19 #
20 # ========================================================================== 20 # ==========================================================================
21 import sys 21 import sys
22 -import gammalib  
23 -import cscripts  
24 try: 22 try:
25 import matplotlib.pyplot as plt 23 import matplotlib.pyplot as plt
26 plt.figure() 24 plt.figure()
@@ -28,6 +26,8 @@ try: @@ -28,6 +26,8 @@ try:
28 except (ImportError, RuntimeError): 26 except (ImportError, RuntimeError):
29 print('This script needs the "matplotlib" module') 27 print('This script needs the "matplotlib" module')
30 sys.exit() 28 sys.exit()
  29 +import gammalib
  30 +import cscripts
31 31
32 32
33 # ============= # 33 # ============= #