We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77d37b8 commit 87c4f76Copy full SHA for 87c4f76
ome_zarr/utils.py
@@ -129,7 +129,7 @@ def splitall(path):
129
return allparts
130
131
132
-def view(input_path: str, port: int = 8000) -> None:
+def view(input_path: str, port: int = 8000, dry_run=False) -> None:
133
# serve the parent directory in a simple server with CORS. Open browser
134
parent_path, server_dir = os.path.split(input_path)
135
# in case input_path had trailing slash, we go one level up...
@@ -224,6 +224,10 @@ def translate_path(self, path: str) -> str:
224
print("No OME-Zarr files found in", input_path)
225
return
226
227
+ # for testing
228
+ if dry_run:
229
+ return
230
+
231
# Open in browser...
232
webbrowser.open(url)
233
0 commit comments