diff --git a/ome_zarr/format.py b/ome_zarr/format.py index 3290254a..3cbe4e0b 100644 --- a/ome_zarr/format.py +++ b/ome_zarr/format.py @@ -360,7 +360,7 @@ def init_store(self, path: str, mode: str = "r") -> FSStore: cls = LocalStore kwargs = {} - + if path.startswith(("http", "s3")): cls = RemoteStore @@ -371,6 +371,6 @@ def init_store(self, path: str, mode: str = "r") -> FSStore: ) # TODO: open issue for using Path LOGGER.debug("Created v0.5 store %s(%s, %s, %s)", cls, path, mode, kwargs) return store - + CurrentFormat = FormatV05 diff --git a/ome_zarr/io.py b/ome_zarr/io.py index fb5538d2..30dc290b 100644 --- a/ome_zarr/io.py +++ b/ome_zarr/io.py @@ -168,9 +168,9 @@ async def get_json(self, subpath: str) -> JSONDict: All other exceptions log at the ERROR level. """ try: - print('get_json', subpath) + print("get_json", subpath) data = await self.__store.get(subpath) - print('data', data) + print("data", data) if not data: return {} diff --git a/ome_zarr/writer.py b/ome_zarr/writer.py index 0b4b0574..5d09176f 100644 --- a/ome_zarr/writer.py +++ b/ome_zarr/writer.py @@ -265,7 +265,13 @@ def write_multiscale( else: # We create the array and write data to it immediately... - a = group.create_array(str(path), chunks=chunks_opt, shape=data.shape, dtype=data.dtype, **options) + a = group.create_array( + str(path), + chunks=chunks_opt, + shape=data.shape, + dtype=data.dtype, + **options, + ) # These 2 lines are equivalent to e.g. a[:,:] = data (for any number of dimensions) s = [np.s_[:]] * len(data.shape) a[tuple(s)] = data