fix(storage): remove VerboseModule to make zarr.storage picklable (gh-4029)#4030
fix(storage): remove VerboseModule to make zarr.storage picklable (gh-4029)#4030NIK-TIGER-BILL wants to merge 4 commits into
Conversation
The VerboseModule subclass prevented from being serialized by cloudpickle (and therefore Dask). The only purpose of the subclass was to emit a deprecation warning when setting , which has been deprecated for a long time. Closes zarr-developers#4029 Signed-off-by: NIK-TIGER-BILL <nik.tiger.bill@github.com>
|
We likely want to also remove zarr-python/src/zarr/core/config.py Lines 71 to 88 in 036ede7 zarr-python/tests/test_config.py Lines 448 to 475 in 036ede7 |
Sounds good to me! And we should consider building up a bit more tooling around deprecations. It's not great that we flag stuff as deprecated and the fragments linger for a long time in the codebase. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4030 +/- ##
==========================================
- Coverage 93.50% 93.25% -0.25%
==========================================
Files 90 90
Lines 11981 11970 -11
==========================================
- Hits 11203 11163 -40
- Misses 778 807 +29
🚀 New features to boost your workflow:
|
Sounds good, thanks for confirming. I agree with the tooling directly, let's handle that separately. @NIK-TIGER-BILL are you up for removing the components mentioned in #4030 (comment) as part of this PR? |
Description of PR
Fixes #4029.
The
VerboseModulesubclass preventedzarr.storagefrom being pickled by cloudpickle (and therefore by Dask). The only purpose of the subclass was to emit a deprecation warning when settingzarr.storage.default_compressor, which has been deprecated for a long time.TODO:
docs/user-guide/*.mdchanges/