We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77c5c99 commit 256502eCopy full SHA for 256502e
1 file changed
TPTBox/core/nii_wrapper.py
@@ -2052,7 +2052,7 @@ def to_stls(
2052
2053
def to_stl(
2054
self: NII,
2055
- label: int,
+ label: int|Enum|Sequence[int]|Sequence[Enum],
2056
out_path: Path | dict[int, Path] | None = None,
2057
bb: tuple | None = None,
2058
to_world: bool = True,
@@ -2107,7 +2107,6 @@ def to_stl(
2107
"""
2108
2109
from stl import mesh
2110
-
2111
seg = self.extract_label(label)
2112
# Prepare binary mask
2113
seg_arr = np.pad(seg.clamp(0, 1).get_array(), 1)
0 commit comments