Skip to content

Commit 61fd99d

Browse files
committed
Fix pool chunking logic
1 parent f58593b commit 61fd99d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mdio/segy/blocked_io.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ def to_zarr(
6161

6262
# Chunksize here is for multiprocessing, not Zarr chunksize.
6363
pool_chunksize, extra = divmod(num_chunks, num_workers * 4)
64-
pool_chunksize += 1 if extra else 0
64+
if extra:
65+
pool_chunksize += 1
6566

6667
tqdm_kw = {"unit": "block", "dynamic_ncols": True}
6768

0 commit comments

Comments
 (0)