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 5151 shutter_count_file = glob .glob (input_dir + "/*_ShutterCount.txt" )[0 ]
5252 shutter_time_file = glob .glob (input_dir + "/*_ShutterTimes.txt" )[0 ]
5353 spectra_file = glob .glob (input_dir + "/*_Spectra.txt" )[0 ]
54+ summed_file = glob .glob (input_dir + "/*_SummedImg.fits" )[0 ]
5455
5556 # validation
5657 print ("Validating input arguments" )
5960 assert Path (shutter_count_file ).exists ()
6061 assert Path (shutter_time_file ).exists ()
6162 assert Path (spectra_file ).exists ()
63+ assert Path (summed_file ).exists ()
6264
6365 # process metadata
6466 print ("Processing metadata" )
9597 os .path .basename (shutter_time_file ))
9698 out_spectra_file = os .path .join (output_dir ,
9799 os .path .basename (spectra_file ))
100+ out_summed_file = os .path .join (output_dir ,
101+ os .path .basename (summed_file ))
98102 shutil .copyfile (shutter_count_file , out_shutter_count )
99103 shutil .copyfile (shutter_time_file , out_shutter_time )
104+ shutil .copyfile (summed_file , out_summed_file )
100105 # handle proper spectra parsing
101106 if skip_first_last_img :
102107 skipping_meta_data (df_meta ).to_csv (
You can’t perform that action at this time.
0 commit comments