File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 51
51
shutter_count_file = glob .glob (input_dir + "/*_ShutterCount.txt" )[0 ]
52
52
shutter_time_file = glob .glob (input_dir + "/*_ShutterTimes.txt" )[0 ]
53
53
spectra_file = glob .glob (input_dir + "/*_Spectra.txt" )[0 ]
54
+ summed_file = glob .glob (input_dir + "/*_SummedImg.fits" )[0 ]
54
55
55
56
# validation
56
57
print ("Validating input arguments" )
59
60
assert Path (shutter_count_file ).exists ()
60
61
assert Path (shutter_time_file ).exists ()
61
62
assert Path (spectra_file ).exists ()
63
+ assert Path (summed_file ).exists ()
62
64
63
65
# process metadata
64
66
print ("Processing metadata" )
95
97
os .path .basename (shutter_time_file ))
96
98
out_spectra_file = os .path .join (output_dir ,
97
99
os .path .basename (spectra_file ))
100
+ out_summed_file = os .path .join (output_dir ,
101
+ os .path .basename (summed_file ))
98
102
shutil .copyfile (shutter_count_file , out_shutter_count )
99
103
shutil .copyfile (shutter_time_file , out_shutter_time )
104
+ shutil .copyfile (summed_file , out_summed_file )
100
105
# handle proper spectra parsing
101
106
if skip_first_last_img :
102
107
skipping_meta_data (df_meta ).to_csv (
You can’t perform that action at this time.
0 commit comments