Commit f11482c09ba380369b7c8bf44365e953bb83dcf5
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 | 2 | # ========================================================================== |
| 3 | 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 | 7 | # This program is free software: you can redistribute it and/or modify |
| 8 | 8 | # it under the terms of the GNU General Public License as published by |
| ... | ... | @@ -19,8 +19,6 @@ |
| 19 | 19 | # |
| 20 | 20 | # ========================================================================== |
| 21 | 21 | import sys |
| 22 | -import gammalib | |
| 23 | -import cscripts | |
| 24 | 22 | try: |
| 25 | 23 | import matplotlib.pyplot as plt |
| 26 | 24 | plt.figure() |
| ... | ... | @@ -28,6 +26,8 @@ try: |
| 28 | 26 | except (ImportError, RuntimeError): |
| 29 | 27 | print('This script needs the "matplotlib" module') |
| 30 | 28 | sys.exit() |
| 29 | +import gammalib | |
| 30 | +import cscripts | |
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 | # ============= # | ... | ... |