File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ Upcoming Release
14
14
* Upgrade dependencies in the test matrices and resolve a
15
15
compatibility issue with testing against the Azure Storage
16
16
Emulator. By :user: `alimanfoo `; :issue: `468 `, :issue: `467 `.
17
+
18
+ * Do not rename Blosc parameters in n5 backend and add `blocksize ` parameter,
19
+ compatible with n5-blosc.
17
20
18
21
.. _release_2.3.2 :
19
22
Original file line number Diff line number Diff line change @@ -416,11 +416,10 @@ def compressor_config_to_n5(compressor_config):
416
416
RuntimeWarning
417
417
)
418
418
419
- n5_config ['codec ' ] = compressor_config ['cname' ]
420
- n5_config ['level ' ] = compressor_config ['clevel' ]
419
+ n5_config ['cname ' ] = compressor_config ['cname' ]
420
+ n5_config ['clevel ' ] = compressor_config ['clevel' ]
421
421
n5_config ['shuffle' ] = compressor_config ['shuffle' ]
422
- assert compressor_config ['blocksize' ] == 0 , \
423
- "blosc block size needs to be 0 for N5 containers."
422
+ n5_config ['blocksize' ] = compressor_config ['blocksize' ]
424
423
425
424
elif codec_id == 'lzma' :
426
425
@@ -475,10 +474,10 @@ def compressor_config_to_zarr(compressor_config):
475
474
476
475
elif codec_id == 'blosc' :
477
476
478
- zarr_config ['cname' ] = compressor_config ['codec ' ]
479
- zarr_config ['clevel' ] = compressor_config ['level ' ]
477
+ zarr_config ['cname' ] = compressor_config ['cname ' ]
478
+ zarr_config ['clevel' ] = compressor_config ['clevel ' ]
480
479
zarr_config ['shuffle' ] = compressor_config ['shuffle' ]
481
- zarr_config ['blocksize' ] = 0
480
+ zarr_config ['blocksize' ] = compressor_config [ 'blocksize' ]
482
481
483
482
elif codec_id == 'lzma' :
484
483
You can’t perform that action at this time.
0 commit comments