Skip to content

Commit 256502e

Browse files
committed
add type hint
1 parent 77c5c99 commit 256502e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

TPTBox/core/nii_wrapper.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,7 +2052,7 @@ def to_stls(
20522052

20532053
def to_stl(
20542054
self: NII,
2055-
label: int,
2055+
label: int|Enum|Sequence[int]|Sequence[Enum],
20562056
out_path: Path | dict[int, Path] | None = None,
20572057
bb: tuple | None = None,
20582058
to_world: bool = True,
@@ -2107,7 +2107,6 @@ def to_stl(
21072107
"""
21082108

21092109
from stl import mesh
2110-
21112110
seg = self.extract_label(label)
21122111
# Prepare binary mask
21132112
seg_arr = np.pad(seg.clamp(0, 1).get_array(), 1)

0 commit comments

Comments
 (0)