Skip to content

Commit

Permalink
Merge pull request pytroll#2965 from djhoese/bugfix-modis-autochunkin…
Browse files Browse the repository at this point in the history
…g-daskincompat

Fix MODIS readers chunking compatibility with newer dask
  • Loading branch information
mraspaud authored Nov 5, 2024
2 parents f05cc8f + 28a793c commit 837b218
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
python-version: ${{ matrix.python-version }}
activate-environment: test-environment
channels: conda-forge
conda-remove-defaults: true
channel-priority: strict

- name: Set cache environment variables
shell: bash -l {0}
Expand Down
2 changes: 1 addition & 1 deletion satpy/readers/hdfeos_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def _chunks_for_variable(self, hdf_dataset):
return normalize_low_res_chunks(
(1,) * num_nonyx_dims + ("auto", -1),
var_shape,
(1,) * num_nonyx_dims + (scan_length_250m, -1),
(1,) * num_nonyx_dims + (scan_length_250m, var_shape[-1]),
(1,) * num_nonyx_dims + (res_multiplier, res_multiplier),
np.float32,
)
Expand Down

0 comments on commit 837b218

Please sign in to comment.