Skin map divide by zero error
If a fluoroscopy RDSR contains no exposures the skin dose map code throws a ZeroDivisionError:
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 401, in make_skin_map "fraction_DAP": my_exp_map.my_dose.dap_count / float(study.total_dap), ~~~~~~~^~~~~~ ZeroDivisionError: float division by zero
Comments (5)
-
reporter -
reporter - changed milestone to 1.0.0
I’d like this to go into version 1.0 so users don’t see these errors in their new task list.
-
Agreed. On the road today so I’ll look at these this evening or over the weekend.
-
reporter Merged in issue986skinDoseMapDivideByZero (pull request #567)
Replaced second occurrence of code that causes divide by zero error with new dap_fraction variable which is generated within a try except block to catch the error. Refs issue
#986and refs issue#965Approved-by: Ed McDonagh
Fixes issue
#986→ <<cset d607d27cbf38>>
-
reporter - changed status to resolved
Merged in issue986skinDoseMapDivideByZero (pull request #567)
Replaced second occurrence of code that causes divide by zero error with new dap_fraction variable which is generated within a try except block to catch the error. Refs issue
#986and refs issue#965Approved-by: Ed McDonagh
Fixes issue
#986→ <<cset d607d27cbf38>>
- Log in to comment
Replaced second occurrence of code that causes divide by zero error with new dap_fraction variable which is generated within a try except block to catch the error. Refs issue
#986and refs issue#965→ <<cset 29a733c9ca18>>