Skip to content

Commit

Permalink
Fix: Black format
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriyzubov committed Mar 26, 2024
1 parent d4e74b2 commit 94c86e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions funlib/persistence/arrays/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 94c86e2

Please sign in to comment.