diff --git a/funlib/persistence/arrays/datasets.py b/funlib/persistence/arrays/datasets.py index 4241bcd..f9a4fad 100644 --- a/funlib/persistence/arrays/datasets.py +++ b/funlib/persistence/arrays/datasets.py @@ -287,9 +287,9 @@ def _read_attrs(ds, order="C"): dims = len(ds.shape) dims = dims if dims <= 3 else 3 if voxel_size is not None and offset is not None and units is not None: - if order == "F" or isinstance(ds.store, (zarr.n5.N5Store,zarr.n5.N5FSStore)): + if order == "F" or isinstance(ds.store, (zarr.n5.N5Store, zarr.n5.N5FSStore)): return voxel_size[::-1], offset[::-1], units[::-1] - else: + else: return voxel_size, offset, units elif voxel_size is None: voxel_size = (1,) * dims diff --git a/tests/test_datasets.py b/tests/test_datasets.py index 56001e7..af38296 100644 --- a/tests/test_datasets.py +++ b/tests/test_datasets.py @@ -28,7 +28,7 @@ def test_metadata_n5(): "ordering": "C", "scale": [5.3, 4.3, 3.3], "translate": [4.3, 3.3, 2.3], - "units": ["nm", "nm", "nm"] + "units": ["nm", "nm", "nm"], }, } return metadata_n5