Skip to content

Commit 40cf301

Browse files
CPBridgeChris Bridge
authored andcommitted
Finalize highdicom seg writer
1 parent 817a116 commit 40cf301

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

monai/deploy/operators/dicom_seg_writer_operator.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
import numpy as np
1818

19-
import highdicom as hd
20-
2119
from monai.deploy.utils.importutil import optional_import
2220
from monai.deploy.utils.version import get_sdk_semver
2321

@@ -30,10 +28,7 @@
3028
hd, _ = optional_import("highdicom")
3129
sitk, _ = optional_import("SimpleITK")
3230
codes, _ = optional_import("pydicom.sr.codedict", name="codes")
33-
if TYPE_CHECKING:
34-
from highdicom.seg import SegmentDescription
35-
else:
36-
SegmentDescription, _ = optional_import("highdicom.seg", name="SegmentDescription")
31+
SegmentDescription, _ = optional_import("highdicom.seg", name="SegmentDescription")
3732

3833
import monai.deploy.core as md
3934
from monai.deploy.core import DataPath, ExecutionContext, Image, InputContext, IOType, Operator, OutputContext

0 commit comments

Comments
 (0)