From 064894d859e692893e351a12ffd3135902a17759 Mon Sep 17 00:00:00 2001 From: Cameron Lloyd Date: Wed, 27 Nov 2024 14:56:08 +0000 Subject: [PATCH] Allow `str` or `Path` types --- src/oct_to_tiff/cli.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/oct_to_tiff/cli.py b/src/oct_to_tiff/cli.py index b72836e..bcbdac2 100644 --- a/src/oct_to_tiff/cli.py +++ b/src/oct_to_tiff/cli.py @@ -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()