Skin map divide by zero error

Issue #986 resolved
David Platten created an issue

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)

  1. David Platten reporter

    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 #986 and refs issue #965

    → <<cset 29a733c9ca18>>

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

  3. David Platten 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 #986 and refs issue #965

    Approved-by: Ed McDonagh

    Fixes issue #986

    → <<cset d607d27cbf38>>

  4. David Platten 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 #986 and refs issue #965

    Approved-by: Ed McDonagh

    Fixes issue #986

    → <<cset d607d27cbf38>>

  5. Log in to comment