Skip to content

Commit

Permalink
STYLE: Improve error messages reported in onLoadPV
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfr committed Oct 31, 2024
1 parent a2b6188 commit bcd10a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AutoscoperM/AutoscoperM.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,11 +784,11 @@ def onLoadPV(self):
scaleNodeName = os.path.join(mainOutputDir, transformSubDir, f"{nodeName}_scale.tfm")
if not os.path.exists(translationNodeName):
raise ValueError(
f"Did not find corresponding translation transform for volume {nodeName}: {translationNodeName}"
f"Failed to load partial volume {nodeName}: Corresponding translation transform file {translationNodeName} not found"
)
if not os.path.exists(scaleNodeName):
raise ValueError(
f"Did not find corresponding scaling transform for volume {nodeName}: {scaleNodeName}"
f"Failed to load partial volume {nodeName}: Corresponding scaling transform file {scaleNodeName} not found"
)
translationNode = slicer.util.loadTransform(translationNodeName)
scaleNode = slicer.util.loadTransform(scaleNodeName)
Expand Down

0 comments on commit bcd10a2

Please sign in to comment.