Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 28, 2024
1 parent 060800e commit 81b5293
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/slicer/MONAILabel/MONAILabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1828,7 +1828,10 @@ def updateSegmentationMask(self, in_file, labels, sliceIndex=None, freeze=None):
# We remember if closed surface representation was present and restore it after import.
segmentationRepresentationNames = []
segmentationNode.GetSegmentation().GetContainedRepresentationNames(segmentationRepresentationNames)
hasClosedSurfaceRepresentation = slicer.vtkSegmentationConverter.GetSegmentationClosedSurfaceRepresentationName() in segmentationRepresentationNames
hasClosedSurfaceRepresentation = (
slicer.vtkSegmentationConverter.GetSegmentationClosedSurfaceRepresentationName()
in segmentationRepresentationNames
)

slicer.modules.segmentations.logic().ImportLabelmapToSegmentationNode(
labelmapVolumeNode, segmentationNode, segmentIds
Expand Down

0 comments on commit 81b5293

Please sign in to comment.