From 67110575cf74d803cc5ab606a62a6439fec503bf Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 29 Apr 2016 12:58:42 +0800 Subject: ciao_calc_csb.py: fix order between print and ds9 --- ciao_calc_csb.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ciao_calc_csb.py') 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" -- cgit v1.2.2