Skip to content

Commit

Permalink
test: use odd dimensions in downsampling test
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Apr 5, 2024
1 parent fe4ed29 commit 2e10ec4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_sink.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ def testImageCopySmallDownsampling(resample_method, tmp_path):
fractal=True,
tileWidth=128,
tileHeight=128,
sizeX=512,
sizeY=1024,
sizeX=511,
sizeY=1023,
frames='c=2,z=3',
)
copyFromSource(source, sink)
Expand All @@ -227,7 +227,7 @@ def testImageCopySmallDownsampling(resample_method, tmp_path):
written_arrays = dict(written._zarr.arrays())
assert len(written_arrays) == written.levels
assert written_arrays.get('0') is not None
assert written_arrays.get('0').shape == (2, 3, 1024, 512, 3)
assert written_arrays.get('0').shape == (2, 3, 1023, 511, 3)
assert written_arrays.get('1') is not None
assert written_arrays.get('1').shape == (2, 3, 512, 256, 3)

Expand Down

0 comments on commit 2e10ec4

Please sign in to comment.