Commit 105497eb84990ceb4906fc02145c1559f98bf061
1 parent
241f8174
Import Python native modules first
Showing
14 changed files
with
20 additions
and
21 deletions
cscripts/cscaldb.py
| @@ -18,11 +18,11 @@ | @@ -18,11 +18,11 @@ | ||
| 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | # | 19 | # |
| 20 | # ========================================================================== | 20 | # ========================================================================== |
| 21 | -import gammalib | ||
| 22 | -import ctools | ||
| 23 | import sys | 21 | import sys |
| 24 | import glob | 22 | import glob |
| 25 | import os | 23 | import os |
| 24 | +import gammalib | ||
| 25 | +import ctools | ||
| 26 | 26 | ||
| 27 | 27 | ||
| 28 | # ============= # | 28 | # ============= # |
cscripts/cslightcrv.py
| @@ -18,9 +18,9 @@ | @@ -18,9 +18,9 @@ | ||
| 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | # | 19 | # |
| 20 | # ========================================================================== | 20 | # ========================================================================== |
| 21 | +import sys | ||
| 21 | import gammalib | 22 | import gammalib |
| 22 | import ctools | 23 | import ctools |
| 23 | -import sys | ||
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | # ================ # | 26 | # ================ # |
cscripts/csobs2caldb.py
| @@ -18,11 +18,11 @@ | @@ -18,11 +18,11 @@ | ||
| 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | # | 19 | # |
| 20 | # ========================================================================== | 20 | # ========================================================================== |
| 21 | -import gammalib | ||
| 22 | -import ctools | ||
| 23 | import sys | 21 | import sys |
| 24 | import os | 22 | import os |
| 25 | import datetime | 23 | import datetime |
| 24 | +import gammalib | ||
| 25 | +import ctools | ||
| 26 | 26 | ||
| 27 | 27 | ||
| 28 | # ================= # | 28 | # ================= # |
cscripts/csobsdef.py
| @@ -18,9 +18,9 @@ | @@ -18,9 +18,9 @@ | ||
| 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | # | 19 | # |
| 20 | # ========================================================================== | 20 | # ========================================================================== |
| 21 | +import sys | ||
| 21 | import gammalib | 22 | import gammalib |
| 22 | import ctools | 23 | import ctools |
| 23 | -import sys | ||
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | # ============== # | 26 | # ============== # |
cscripts/cspull.py
| @@ -18,11 +18,11 @@ | @@ -18,11 +18,11 @@ | ||
| 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | # | 19 | # |
| 20 | # ========================================================================== | 20 | # ========================================================================== |
| 21 | +import sys | ||
| 22 | +import csv | ||
| 21 | import gammalib | 23 | import gammalib |
| 22 | import ctools | 24 | import ctools |
| 23 | from cscripts import obsutils | 25 | from cscripts import obsutils |
| 24 | -import sys | ||
| 25 | -import csv | ||
| 26 | 26 | ||
| 27 | 27 | ||
| 28 | # ============ # | 28 | # ============ # |
cscripts/csresmap.py
| @@ -18,9 +18,9 @@ | @@ -18,9 +18,9 @@ | ||
| 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | # | 19 | # |
| 20 | # ========================================================================== | 20 | # ========================================================================== |
| 21 | +import sys | ||
| 21 | import gammalib | 22 | import gammalib |
| 22 | import ctools | 23 | import ctools |
| 23 | -import sys | ||
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | # ============== # | 26 | # ============== # |
cscripts/csroot2caldb.py
| @@ -21,9 +21,9 @@ | @@ -21,9 +21,9 @@ | ||
| 21 | import os | 21 | import os |
| 22 | import sys | 22 | import sys |
| 23 | import math | 23 | import math |
| 24 | +from datetime import datetime | ||
| 24 | import gammalib | 25 | import gammalib |
| 25 | import ctools | 26 | import ctools |
| 26 | -from datetime import datetime | ||
| 27 | 27 | ||
| 28 | # Optional ROOT import | 28 | # Optional ROOT import |
| 29 | try: | 29 | try: |
cscripts/cssens.py
| @@ -18,12 +18,12 @@ | @@ -18,12 +18,12 @@ | ||
| 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | # | 19 | # |
| 20 | # ========================================================================== | 20 | # ========================================================================== |
| 21 | -import gammalib | ||
| 22 | -import ctools | ||
| 23 | -from cscripts import obsutils | ||
| 24 | import sys | 21 | import sys |
| 25 | import csv | 22 | import csv |
| 26 | import math | 23 | import math |
| 24 | +import gammalib | ||
| 25 | +import ctools | ||
| 26 | +from cscripts import obsutils | ||
| 27 | 27 | ||
| 28 | 28 | ||
| 29 | # ============ # | 29 | # ============ # |
cscripts/csspec.py
| @@ -18,9 +18,9 @@ | @@ -18,9 +18,9 @@ | ||
| 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | # | 19 | # |
| 20 | # ========================================================================== | 20 | # ========================================================================== |
| 21 | +import sys | ||
| 21 | import gammalib | 22 | import gammalib |
| 22 | import ctools | 23 | import ctools |
| 23 | -import sys | ||
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | # ============ # | 26 | # ============ # |
cscripts/cstsdist.py
| @@ -18,11 +18,11 @@ | @@ -18,11 +18,11 @@ | ||
| 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | # | 19 | # |
| 20 | # ========================================================================== | 20 | # ========================================================================== |
| 21 | +import sys | ||
| 22 | +import csv | ||
| 21 | import gammalib | 23 | import gammalib |
| 22 | import ctools | 24 | import ctools |
| 23 | from cscripts import obsutils | 25 | from cscripts import obsutils |
| 24 | -import sys | ||
| 25 | -import csv | ||
| 26 | 26 | ||
| 27 | 27 | ||
| 28 | # ============== # | 28 | # ============== # |
cscripts/cstsmapmerge.py
| @@ -18,11 +18,11 @@ | @@ -18,11 +18,11 @@ | ||
| 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | # | 19 | # |
| 20 | # ========================================================================== | 20 | # ========================================================================== |
| 21 | -import gammalib | ||
| 22 | -import ctools | ||
| 23 | import sys | 21 | import sys |
| 24 | import glob | 22 | import glob |
| 25 | import os | 23 | import os |
| 24 | +import gammalib | ||
| 25 | +import ctools | ||
| 26 | 26 | ||
| 27 | 27 | ||
| 28 | # ================== # | 28 | # ================== # |
cscripts/csworkflow.py
| @@ -18,10 +18,10 @@ | @@ -18,10 +18,10 @@ | ||
| 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | # | 19 | # |
| 20 | # ========================================================================== | 20 | # ========================================================================== |
| 21 | +import sys | ||
| 21 | import gammalib | 22 | import gammalib |
| 22 | import ctools | 23 | import ctools |
| 23 | import cscripts | 24 | import cscripts |
| 24 | -import sys | ||
| 25 | 25 | ||
| 26 | 26 | ||
| 27 | # ================ # | 27 | # ================ # |
cscripts/lsmodel.py
| @@ -18,8 +18,8 @@ | @@ -18,8 +18,8 @@ | ||
| 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | # | 19 | # |
| 20 | # ========================================================================== | 20 | # ========================================================================== |
| 21 | -import gammalib | ||
| 22 | import sys | 21 | import sys |
| 22 | +import gammalib | ||
| 23 | 23 | ||
| 24 | 24 | ||
| 25 | # ============= # | 25 | # ============= # |
cscripts/obsutils.py
| @@ -19,7 +19,6 @@ | @@ -19,7 +19,6 @@ | ||
| 19 | # ========================================================================== | 19 | # ========================================================================== |
| 20 | import gammalib | 20 | import gammalib |
| 21 | import ctools | 21 | import ctools |
| 22 | -#import math | ||
| 23 | 22 | ||
| 24 | 23 | ||
| 25 | # ===================== # | 24 | # ===================== # |