Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonw committed Dec 10, 2024
1 parent d3e90e4 commit f59dab8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion funlib/persistence/arrays/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def prepare_ds(
default_metadata_format.units_attr: combined_metadata.units,
default_metadata_format.voxel_size_attr: combined_metadata.voxel_size,
default_metadata_format.offset_attr: combined_metadata.offset,
default_metadata_format.types_attr: combined_metadata.types
default_metadata_format.types_attr: combined_metadata.types,
}
)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def test_helpers(tmpdir, store, dtype):
assert array.offset == metadata.offset
assert array.axis_names == metadata.axis_names
assert array.units == metadata.units
assert array.types == metadata.types
assert array.types == metadata.types

# test prepare_ds updates metadata existing array in "r+" or "a" mode if it exists
array = prepare_ds(
Expand Down
8 changes: 7 additions & 1 deletion tests/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,13 @@ def test_parse_incomplete_metadata(incomplete_metadata):
assert incomplete_metadata.voxel_size == Coordinate(1, 1, 1)
assert incomplete_metadata.axis_names == ["c0^", "c1^", "d0", "d1", "d2"]
assert incomplete_metadata.units == ["", "", ""]
assert incomplete_metadata.types == ["channel", "channel", "space", "space", "space"]
assert incomplete_metadata.types == [
"channel",
"channel",
"space",
"space",
"space",
]


def test_empty_metadata():
Expand Down

0 comments on commit f59dab8

Please sign in to comment.