File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -761,8 +761,8 @@ def shard_shapefn(mip):
761761 num_x_shards = int (factor [0 ] ** (num_mips - i ))
762762 num_y_shards = int (factor [1 ] ** (num_mips - i ))
763763
764- num_x_shards = int (min (num_x_shards , np .ceil (zbox .size ().x / shard_shape [0 ])) // (2 ** i ))
765- num_y_shards = int (min (num_y_shards , np .ceil (zbox .size ().y / shard_shape [1 ])) // (2 ** i ))
764+ num_x_shards = int (min (num_x_shards , np .ceil (zbox .size ().x / shard_shape [0 ])) // (factor [ 0 ] ** i ))
765+ num_y_shards = int (min (num_y_shards , np .ceil (zbox .size ().y / shard_shape [1 ])) // (factor [ 1 ] ** i ))
766766
767767 num_x_shards = int (min (num_x_shards , np .ceil (src_vol .meta .volume_size (mip + i ).x / shard_shape [0 ])))
768768 num_y_shards = int (min (num_y_shards , np .ceil (src_vol .meta .volume_size (mip + i ).y / shard_shape [1 ])))
You can’t perform that action at this time.
0 commit comments