the-lay / tiler

N-dimensional NumPy array tiling and merging with overlapping, padding and tapering
https://the-lay.github.io/tiler/
MIT License
65 stars 10 forks source link

`mode='drop'` produces wrong tiling with integer overlap #3

Closed the-lay closed 3 years ago

the-lay commented 3 years ago

Encountered this problem when running this code:

tiler = Tiler(data_shape=(2, 180, 512, 512), tile_shape=(1, 64, 64, 64), overlap=32, mode='drop')
print(tiler.n_tiles) # 0

It should have raised an exception since overlap is bigger than data_shape on the first dimension.