aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2017-03-04 16:39:40 +0800
committerAaron LI <aaronly.me@outlook.com>2017-03-04 16:39:40 +0800
commit0dd39d4d94d75341bfeb5184a4032f037dc7175f (patch)
tree4b6b54e8f6b7e55b4e02dd3928f97abb981765b5 /bin
parent5eca9f7055b10bf95f6cd211d093fcc9fd126111 (diff)
downloadchandra-acis-analysis-0dd39d4d94d75341bfeb5184a4032f037dc7175f.tar.bz2
clean_evt2.py: Show a warning with solution for GTI creation in ChIPS
Diffstat (limited to 'bin')
-rwxr-xr-xbin/clean_evt2.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/clean_evt2.py b/bin/clean_evt2.py
index ee93f36..0dc2636 100755
--- a/bin/clean_evt2.py
+++ b/bin/clean_evt2.py
@@ -133,6 +133,9 @@ def make_gti(infile, outfile, scale=1.2, clobber=False):
"print_window('%s', ['format', 'jpg', 'clobber', 'True'])" % outimg
]
open(chipsfile, "w").write("\n".join(lines) + "\n")
+ logger.warning("ChIPS may sometimes just failed to execute the script " +
+ "to create the GTI file. If this happens, try manually " +
+ "run 'execfile(%s)' in ChIPS." % chipsfile)
subprocess.check_call(["chips", "-x", chipsfile])
if not os.path.exists(outfile):