Skip to content

Commit

Permalink
Merge pull request #76 from camlloyd/boundaries
Browse files Browse the repository at this point in the history
Allow `str` or `Path` types
  • Loading branch information
camlloyd authored Nov 27, 2024
2 parents f4b58bf + 064894d commit 17a67b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/oct_to_tiff/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,16 @@ def write_volume(
)


def extract_boundaries(input_path: Path) -> None:
def extract_boundaries(input_path: str | Path) -> None:
"""Extract segmentation lines.
Parameters
----------
input_path : Path
input_path : str | Path
The specified input path.
"""
input_path = Path(input_path)
tree = DET.parse(input_path)
root = tree.getroot()

Expand Down

0 comments on commit 17a67b3

Please sign in to comment.