Skip to content

Commit

Permalink
Allow str or Path types
Browse files Browse the repository at this point in the history
  • Loading branch information
camlloyd committed Nov 27, 2024
1 parent f4b58bf commit 064894d
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 064894d

Please sign in to comment.