summaryrefslogtreecommitdiffstats
path: root/ciao_calc_csb.py
diff options
context:
space:
mode:
Diffstat (limited to 'ciao_calc_csb.py')
-rwxr-xr-xciao_calc_csb.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ciao_calc_csb.py b/ciao_calc_csb.py
index 9527c34..24c130e 100755
--- a/ciao_calc_csb.py
+++ b/ciao_calc_csb.py
@@ -15,6 +15,7 @@
#
# Changelog:
# 2016-04-29:
+# * Fix order of executing ds9 and print message
# * Fix C_SB calculation
# * Add reference
# * Fix "cuspiness" to "concentration"
@@ -139,11 +140,11 @@ def main():
make_csb_region(regfile, center=(xc, yc), r1=r1, r2=r2)
# check region with DS9
if args.no_ask == False:
+ print("Check the C_SB regions; overwrite the region file " + \
+ "'%s' if modified" % regfile, flush=True, file=sys.stderr)
cmd = "ds9 %s -cmap he " % args.infile + \
"-regions format ciao -regions %s" % regfile
subprocess.call(cmd, shell=True)
- print("Check the C_SB regions; overwrite the region file if modified",
- flush=True, file=sys.stderr)
ans = input("C_SB regions exceed CCD (No/yes/modified)? ")
if ans == "" or ans[0] in "nN":
csb_region_note = "OK"