Skin map missing exposure_time error
If exposure_time is missing then an error is thrown which crashes the make_skin_map.py code:
Traceback (most recent call last):
File "e:\openrem-src\openrem\remapp\tools\make_skin_map.py", line 306, in make_skin_map frames = float( ^^^^^^ TypeError: float() argument must be a string or a real number, not 'NoneType'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "e:\openrem-src\openrem\remapp\tools\background.py", line 148, in run_as_task func(*args, **kwargs) File "e:\openrem-src\openrem\remapp\tools\make_skin_map.py", line 312, in make_skin_map irrad.irradeventxraysourcedata_set.get().exposure_time decimal.InvalidOperation: []
Comments (3)
-
reporter -
reporter I can confirm that this change has fixed the error for me.
On our Canon Alphenix Sky+ interventional x-ray system single-shot exposures do not have data in the exposure time field, causing the error.
-
- changed status to resolved
Merged in issue995skinMapMissingExposureTimeError (pull request #588)
Added exception to catch the decimal.InvalidOperation error. Fixes issue
#995Approved-by: Ed McDonagh
→ <<cset 30886a8b403a>>
- Log in to comment
Added exception to catch the decimal.InvalidOperation error. Refs issue
#995→ <<cset 8e41cd72d07e>>