Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CPBridge committed Oct 4, 2024
1 parent 73b289e commit 33d586f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/highdicom/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -1787,7 +1787,8 @@ def __init__(
)
if referenced_images[0].SOPClassUID not in (
SegmentationStorage,
"1.2.840.10008.5.1.4.1.1.66.7", # Label Map Segmentation Storage
# Label Map Segmentation Storage
"1.2.840.10008.5.1.4.1.1.66.7",
):
raise TypeError(
'"referenced_segment_number" is only valid when the '
Expand Down
4 changes: 2 additions & 2 deletions src/highdicom/sr/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -1569,7 +1569,7 @@ def from_segmentation(
"""
if segmentation.SOPClassUID not in (
SegmentationStorage,
"1.2.840.10008.5.1.4.1.1.66.7", # Label Map Segmentation Storage
"1.2.840.10008.5.1.4.1.1.66.7", # Label Map Segmentation Storage
):
raise ValueError(
'Argument "segmentation" should represent a Segmentation.'
Expand Down Expand Up @@ -1947,7 +1947,7 @@ def from_segmentation(
"""
if segmentation.SOPClassUID not in (
SegmentationStorage,
"1.2.840.10008.5.1.4.1.1.66.7", # Label Map Segmentation Storage
"1.2.840.10008.5.1.4.1.1.66.7", # Label Map Segmentation Storage
):
raise ValueError(
'Input dataset should be a segmentation storage instance'
Expand Down

0 comments on commit 33d586f

Please sign in to comment.