diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-04-29 12:58:42 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-04-29 12:58:42 +0800 |
commit | 67110575cf74d803cc5ab606a62a6439fec503bf (patch) | |
tree | 26943a2e910ca1e697003f09515621bd75093d0e | |
parent | 304f869454b5ee2d7891bcf97e81f7c8fc2242eb (diff) | |
download | cexcess-67110575cf74d803cc5ab606a62a6439fec503bf.tar.bz2 |
ciao_calc_csb.py: fix order between print and ds9
-rwxr-xr-x | ciao_calc_csb.py | 5 |
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" |