We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 605c384 commit b41da43Copy full SHA for b41da43
tests/test_dask_rasterio.py
@@ -199,9 +199,10 @@ def test_read_raster_band_with_block_size(some_raster_path):
199
assert_array_equal(array, array_4b)
200
201
with rasterio.open(some_raster_path) as src:
202
- ch, cw = src.block_shapes[0]
+ block_height, block_width = src.block_shapes[0]
203
+ height, width = src.shape
204
- assert array.chunks[0][0] == ch
205
- assert array.chunks[1][0] == cw
206
- assert array_4b.chunks[0][0] == ch * 4
207
- assert array_4b.chunks[1][0] == cw * 4
+ assert array.chunks[0][0] == block_height
+ assert array.chunks[1][0] == block_width
+ assert array_4b.chunks[0][0] == min(block_height * 4, height)
208
+ assert array_4b.chunks[1][0] == min(block_width * 4, width)
0 commit comments