Skip to content

Commit

Permalink
Merge pull request #195 from Tamookk/bug-fixes
Browse files Browse the repository at this point in the history
Bug Fix: SUV2ROI failure
  • Loading branch information
didymo authored Oct 10, 2021
2 parents 18b4650 + 84e7cf3 commit 919d7b9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/View/mainpage/MainPage.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,15 +454,15 @@ def on_loaded_suv2roi(self):
"""
if self.suv2roi.suv2roi_status:
patient_dict_container = PatientDictContainer()
self.structures_tab.structure_modified((
self.structures_tab.fixed_container_structure_modified((
patient_dict_container.get('dataset_rtss'), {"draw": None}))
else:
# Alert user that SUV2ROI failed and for what reason
#if self.suv2roi.failure_reason == "UNIT":
# failure_reason = \
# "PET units are not Bq/mL. OnkoDICOM can currently only\n" \
# "perform SUV2ROI on PET images stored in these units."
if self.suv2roi.failure_reason == "UNIT":
failure_reason = \
"PET units are not Bq/mL. OnkoDICOM can currently only\n" \
"perform SUV2ROI on PET images stored in these units."
elif self.suv2roi.failure_reason == "DECY":
failure_reason = \
"PET is not decay corrected. OnkoDICOM can currently " \
"only\nperform SUV2ROI on PET images that are decay " \
Expand Down

0 comments on commit 919d7b9

Please sign in to comment.