From cff491cd36cb664684c1e0442e2382089914b8df Mon Sep 17 00:00:00 2001 From: Akio Taniguchi Date: Mon, 17 Jun 2024 02:17:57 +0000 Subject: [PATCH] #6 Fix to infer correct TOD FITS name --- scripts/aste/Configure.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/aste/Configure.py b/scripts/aste/Configure.py index 76a14ec..36c3dc5 100644 --- a/scripts/aste/Configure.py +++ b/scripts/aste/Configure.py @@ -8,7 +8,7 @@ run: # 1. specify data files (asked by prompt) # 2. modify config data at out/conf/general.conf -# - DeltaHz in [values]: gap frequency. used when determining +# - DeltaHz in [values]: gap frequency. used when determining # lowest frequency for table of filter transparency # - [powerfreqbin]: used for radiation power calculation (numerical integral) # - etendue in [optics]: optical throughput @@ -67,12 +67,12 @@ def complete(text, state): # kidslist_path = os.path.join(targetdir, 'kids.list') localsweep_path = os.path.join(targetdir, 'localsweep.sweep') - TOD_fits_path = os.path.join(targetdir, 'measurement.fits') + TOD_fits_path = glob.glob(os.path.join(targetdir, '*.fits'))[0] localsweep_roomchopper_path = os.path.join(targetdir, 'RoomChopperClosed', 'localsweep.sweep') if not os.path.exists(localsweep_roomchopper_path): - localsweep_roomchopper_path = '' - - + localsweep_roomchopper_path = '' + + if args.force: try: shutil.rmtree(outdir)