Skip to content

Commit

Permalink
Remove use of deprecated satpy chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Oct 6, 2023
1 parent 8c22c78 commit 2e70596
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion polar2grid/glue.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,6 @@ def _set_preferred_chunk_size(preferred_chunk_size: int) -> None:
pcs_in_mb = (preferred_chunk_size * preferred_chunk_size) * 8 // (1024 * 1024)
if "PYTROLL_CHUNK_SIZE" not in os.environ:
LOG.debug(f"Setting preferred chunk size to {preferred_chunk_size} pixels or {pcs_in_mb:d}MiB")
satpy.CHUNK_SIZE = preferred_chunk_size
os.environ["PYTROLL_CHUNK_SIZE"] = f"{preferred_chunk_size:d}"
dask.config.set({"array.chunk-size": f"{pcs_in_mb:d}MiB"})
else:
Expand Down

0 comments on commit 2e70596

Please sign in to comment.