Skip to content

Commit

Permalink
Merge branch 'main' into train-overhaul
Browse files Browse the repository at this point in the history
  • Loading branch information
mzouink authored Feb 18, 2025
2 parents dbb2285 + 2e149b2 commit 022f09e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ dependencies = [
"pyyaml",
"scipy",
"upath",
"boto3",
"boto3==1.35.81",
"matplotlib",
"funlib.persistence @ git+https://github.com/funkelab/funlib.persistence.git@ome-ngff",
"xarray-multiscale",
Expand Down Expand Up @@ -204,7 +204,7 @@ module = [
"napari.*",
"empanada.*",
"IPython.*",
"xarray_multiscale.*"
"cellmap_schemas.*",
]
ignore_missing_imports = true

Expand Down
19 changes: 15 additions & 4 deletions tests/operations/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,21 @@
def test_array(array_config):
array = array_config.array()

assert array.offset == (12, 12, 12), f"offset is not correct, expected (12, 12, 12), got {array.offset}"
assert array.voxel_size == (1, 2, 4), f"resolution is not correct, expected (1, 2, 4), got {array.voxel_size}"
assert array.axis_names == ["z", "y", "x"], f"axis names are not correct, expected ['z', 'y', 'x'], got {array.axis_names}"
assert array.offset == (
12,
12,
12,
), f"offset is not correct, expected (12, 12, 12), got {array.offset}"
assert array.voxel_size == (
1,
2,
4,
), f"resolution is not correct, expected (1, 2, 4), got {array.voxel_size}"
assert array.axis_names == [
"z",
"y",
"x",
], f"axis names are not correct, expected ['z', 'y', 'x'], got {array.axis_names}"

# offset = array.attrs["offset"]
# resolution = array.attrs["resolution"]

0 comments on commit 022f09e

Please sign in to comment.