Lack of exposure time breaks program
When running get_temp_from_raw_by_program
on a program where the script does not find an exposure time, it breaks by raising Warning.
Expected behaviour would be to issue a warning, but returning success=False (as in the commented line 2526).
Traceback:
Traceback (most recent call last): File "…", line 379, in <module> status, times, temperatureimages, valid = IR.get_temp_from_raw_by_program("AEF11", lib.format_pid_with_zero(pid), time_window=1, verbose=3, threads=2) File "…lib\site-packages\IR_data_access\downloadversionIRdata.py", line 2025, in get_temp_from_raw_by_program cexist, background, LUT,refT, gain, offset, badpixels, t_exp, cfilter, gain_error, offset_error = get_calib_data(portnr, t0=t0, t1=t1, t6=t6, emissivity=emi, T_version=T_version, version=version, back_emissivity=back_emissivity, testmode=testmode, verbose=verbose-1) File "…lib\site-packages\IR_data_access\downloadversionIRdata.py", line 2525, in get_calib_data raise Warning("get_calib_data: no exposure time found") Warning: get_calib_data: no exposure time found