You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This worked with version 2024.9.0, but with version 2024.10.0 and up, I get the following error:
Traceback (most recent call last):
File "/exec/jlavoie/.conda/xscen-dev/lib/python3.12/site-packages/IPython/core/interactiveshell.py", line 3577, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-37-1d0e2ad48247>", line 4, in <module>
array_plan = rechunk(
^^^^^^^^
File "/exec/jlavoie/.conda/xscen-dev/lib/python3.12/site-packages/rechunker/api.py", line 303, in rechunk
copy_spec, intermediate, target = _setup_rechunk(
^^^^^^^^^^^^^^^
File "/exec/jlavoie/.conda/xscen-dev/lib/python3.12/site-packages/rechunker/api.py", line 447, in _setup_rechunk
variable_encoding = extract_zarr_variable_encoding(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/exec/jlavoie/.conda/xscen-dev/lib/python3.12/site-packages/xarray/backends/zarr.py", line 473, in extract_zarr_variable_encoding
chunks = _determine_zarr_chunks(
^^^^^^^^^^^^^^^^^^^^^^^
File "/exec/jlavoie/.conda/xscen-dev/lib/python3.12/site-packages/xarray/backends/zarr.py", line 329, in _determine_zarr_chunks
for zchunk, dchunks, interval, size in zip(
^^^^
TypeError: 'NoneType' object is not iterable
Note that if I don't write ds1 to disk, there is no error.
The text was updated successfully, but these errors were encountered:
<!-- Please ensure the PR fulfills the following requirements! -->
<!-- If this is your first PR, make sure to add your details to the
AUTHORS.rst! -->
### Pull Request Checklist:
- [ ] This PR addresses an already opened issue (for bug fixes /
features)
- This PR fixes #xyz
- [x] (If applicable) Documentation has been added / updated (for bug
fixes / features).
- [x] (If applicable) Tests have been added.
- [x] This PR does not seem to break the templates.
- [x] CHANGELOG.rst has been updated (with summary of main changes).
- [x] Link to issue (:issue:`number`) and pull request (:pull:`number`)
has been added.
### What kind of change does this PR introduce?
* Improve `build_partition_data`
* pinned xarray because of
pangeo-data/rechunker#154
### Does this PR introduce a breaking change?
yes, I removed the indicator_kw argument. I realized it was too heavy to
do everything in one shot.
### Other information:
Developped for "On the importance of the reference data: Uncertainty
partitioning of bias-adjusted climate simulations over Quebec" by Lavoie
et al. (submitted in 2024) (presented at the last jamboree)
Code for the paper here: https://github.com/Ouranosinc/partition
It looks like rechunker was broken by new versions of xarray for rechunking zarr written to disk.
Minimal working example:
This worked with version 2024.9.0, but with version 2024.10.0 and up, I get the following error:
Note that if I don't write ds1 to disk, there is no error.
The text was updated successfully, but these errors were encountered: