Skip to content

Commit

Permalink
Fixing chunk deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-braun committed Jan 4, 2024
1 parent 86f4e2a commit b601134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eoreader/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def read(
tile_size = int(os.getenv(TILE_SIZE, DEFAULT_TILE_SIZE))

if use_dask():
chunks = kwargs.get("chunks", [1, tile_size, tile_size])
chunks = kwargs.get("chunks", {"band": 1, "x": tile_size, "y": tile_size})
# LOGGER.debug(f"Current chunking: {chunks}")
else:
# LOGGER.debug("Dask use is not enabled. No chunk will be used, but you may encounter memory overflow errors.")
Expand Down

0 comments on commit b601134

Please sign in to comment.