aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--acispy/analyze_path.py2
-rwxr-xr-xscripts/calc_centroid.py9
-rwxr-xr-xscripts/clean_evt2.py9
-rwxr-xr-xscripts/collect_yaml.py3
-rwxr-xr-xscripts/event2image.py7
-rwxr-xr-xscripts/renorm_spectrum.py3
6 files changed, 18 insertions, 15 deletions
diff --git a/acispy/analyze_path.py b/acispy/analyze_path.py
index 578a6db..0f97bce 100644
--- a/acispy/analyze_path.py
+++ b/acispy/analyze_path.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-#
# Copyright (c) 2017 Weitian LI <liweitianux@live.com>
# MIT license
#
diff --git a/scripts/calc_centroid.py b/scripts/calc_centroid.py
index d5342a5..36fd766 100755
--- a/scripts/calc_centroid.py
+++ b/scripts/calc_centroid.py
@@ -16,10 +16,11 @@ import argparse
import subprocess
import tempfile
-from manifest import get_manifest
-from setup_pfiles import setup_pfiles
-from ds9 import ds9_view
-from regions import Regions
+from context import acispy
+from acispy.manifest import get_manifest
+from acispy.pfiles import setup_pfiles
+from acispy.ds9 import ds9_view
+from acispy.regions import Regions
def smooth_image(infile, outfile=None,
diff --git a/scripts/clean_evt2.py b/scripts/clean_evt2.py
index 54647cf..f6914b1 100755
--- a/scripts/clean_evt2.py
+++ b/scripts/clean_evt2.py
@@ -22,10 +22,11 @@ import subprocess
import shutil
import logging
-from manifest import get_manifest
-from setup_pfiles import setup_pfiles
-from acis import ACIS
-from ds9 import ds9_view
+from context import acispy
+from acispy.manifest import get_manifest
+from acispy.pfiles import setup_pfiles
+from acispy.acis import ACIS
+from acispy.ds9 import ds9_view
logging.basicConfig(level=logging.INFO)
diff --git a/scripts/collect_yaml.py b/scripts/collect_yaml.py
index 05d4684..6758555 100755
--- a/scripts/collect_yaml.py
+++ b/scripts/collect_yaml.py
@@ -15,7 +15,8 @@ import sys
import argparse
import csv
-from manifest import Manifest
+from context import acispy
+from acispy.manifest import Manifest
def main():
diff --git a/scripts/event2image.py b/scripts/event2image.py
index ba5e216..3dc429f 100755
--- a/scripts/event2image.py
+++ b/scripts/event2image.py
@@ -13,9 +13,10 @@ import sys
import argparse
import subprocess
-from manifest import get_manifest
-from setup_pfiles import setup_pfiles
-from acis import ACIS
+from context import acispy
+from acispy.manifest import get_manifest
+from acispy.pfiles import setup_pfiles
+from acispy.acis import ACIS
def make_image(infile, outfile, chips, erange, fov, clobber=False):
diff --git a/scripts/renorm_spectrum.py b/scripts/renorm_spectrum.py
index a09c90d..2b54076 100755
--- a/scripts/renorm_spectrum.py
+++ b/scripts/renorm_spectrum.py
@@ -15,7 +15,8 @@ import sys
import argparse
import subprocess
-from spectrum import Spectrum
+from context import acispy
+from acispy.spectrum import Spectrum
def renorm_spectrum(specfile, specfile_ref, elow=9500, ehigh=12000):