From 0dd39d4d94d75341bfeb5184a4032f037dc7175f Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 4 Mar 2017 16:39:40 +0800 Subject: clean_evt2.py: Show a warning with solution for GTI creation in ChIPS --- bin/clean_evt2.py | 3 +++ 1 file changed, 3 insertions(+) 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): -- cgit v1.2.2