Skip to content

Commit 7e3ce79

Browse files
committed
Update docs.
1 parent 6317782 commit 7e3ce79

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tiatoolbox/utils/tiff_to_fsspec.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,18 @@ def replace_url(
4949

5050

5151
def main(svs_file_path: str, json_file_path: str, final_url: str) -> None:
52-
"""Main function to handle SVS file processing."""
52+
"""Main function to process an SVS file.
53+
54+
Args:
55+
svs_file_path (str): The local file path of the SVS file to be processed.
56+
json_file_path (str): The file path where the output JSON will be saved.
57+
final_url (str): The URL where the SVS file is stored online
58+
and can be accessed via HTTP byte range API.
59+
60+
Example:
61+
main('/path/to/CMU-1-Small-Region.svs', '/path/to/CMU-1-Small-Region.json', 'https://tiatoolbox.dcs.warwick.ac.uk/sample_wsis/CMU-1-Small-Region.svs')
62+
63+
"""
5364
url_to_replace = f"{URL_PLACEHOLDER}{Path(svs_file_path).name}"
5465

5566
tiff = TiffFile(svs_file_path)

0 commit comments

Comments
 (0)