Skip to content

Commit d3f4725

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 13f3377 commit d3f4725

File tree

10 files changed

+754
-723
lines changed

10 files changed

+754
-723
lines changed

monailabel/datastore/utils/convert.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242

4343
logger = logging.getLogger(__name__)
4444

45+
4546
class SegmentDescription:
4647
"""Wrapper class for segment description following MONAI Deploy pattern.
4748
@@ -170,7 +171,7 @@ def dicom_to_nifti(series_dir, is_seg=False):
170171

171172
try:
172173
from monailabel.transform.reader import NvDicomReader
173-
174+
174175
# Use NvDicomReader with LoadImage
175176
reader = NvDicomReader()
176177
loader = LoadImage(reader=reader, image_only=False)
@@ -511,9 +512,10 @@ def nifti_to_dicom_seg(
511512

512513

513514
def itk_image_to_dicom_seg(label, series_dir, template) -> str:
514-
from monailabel.utils.others.generic import run_command
515515
import shutil
516516

517+
from monailabel.utils.others.generic import run_command
518+
517519
command = "itkimage2segimage"
518520
if not shutil.which(command):
519521
error_msg = (

0 commit comments

Comments
 (0)