aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2017-02-19 16:48:03 +0800
committerAaron LI <aaronly.me@outlook.com>2017-02-19 16:48:03 +0800
commit5dd5e3c2979394e0567564e3095212903a233bf9 (patch)
treebb0419a56139d8e9a0a879578e53710bbec6f1a4 /scripts
parent5313d97b4d3498c9fd9a354b45b46b875350e8d5 (diff)
downloadchandra-acis-analysis-5dd5e3c2979394e0567564e3095212903a233bf9.tar.bz2
Update various script for 'acispy'
Diffstat (limited to 'scripts')
-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
5 files changed, 18 insertions, 13 deletions
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):