Skip to content

Commit 6d38a78

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 58b5372 commit 6d38a78

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

monailabel/datastore/utils/convert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def dicom_seg_to_itk_image(label, output_ext=".seg.nrrd"):
580580
if os.path.isdir(label):
581581
# List and sort files for deterministic behavior
582582
files = sorted(os.listdir(label))
583-
583+
584584
# Filter for valid DICOM files
585585
filename = None
586586
for f in files:
@@ -595,7 +595,7 @@ def dicom_seg_to_itk_image(label, output_ext=".seg.nrrd"):
595595
except Exception:
596596
# Not a valid DICOM, continue searching
597597
continue
598-
598+
599599
if filename is None:
600600
raise ValueError(
601601
f"No valid DICOM files found in directory: {label}\n"

tests/unit/datastore/test_convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def _create_multi_segment_array(self, dims, segment_values, region_type="full_sl
140140
x_center = (i + 1) * x_spacing
141141
# Clamp x_center to valid range
142142
x_center = max(0, min(x_center, dims[0] - 1))
143-
143+
144144
x0 = max(0, x_center - box_w // 2)
145145
x1 = min(dims[0], x0 + box_w)
146146
# Ensure at least one column

0 commit comments

Comments
 (0)