Skin map missing exposure_time error

Issue #995 resolved
David Platten created an issue

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)

  1. David Platten 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.

  2. Log in to comment