File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,18 @@ def replace_url(
4949
5050
5151def 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 )
You can’t perform that action at this time.
0 commit comments