Skip to content

Commit 409c777

Browse files
authored
fix: enable czifile workaround for 2019.7.2.1 (#1246)
Closes #1245 ## Summary by Sourcery Bug Fixes: - Fixes a bug where the czifile workaround was not enabled for version 2019.7.2.1. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Expanded compatibility in image processing to support an additional library version, ensuring consistent decoding and functionality. - **New Features** - Updated project dictionary version and added `czifile` entry for enhanced project tracking. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 6253b11 commit 409c777

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/project_dict.pws

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
personal_ws-1.1 en 15
1+
personal_ws-1.1 en 16
22
napari
33
autoupdate
44
aspell
@@ -14,3 +14,4 @@ changelog
1414
czi
1515
PartSeg
1616
ROI
17+
czifile

package/PartSegImage/image_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def decode_zstd0(data: bytes) -> np.ndarray:
9090
return np.frombuffer(imagecodecs.zstd_decode(data), dtype).copy()
9191

9292

93-
if parse_version(version("czifile")) == parse_version("2019.7.2"):
93+
if parse_version(version("czifile")) in {parse_version("2019.7.2"), parse_version("2019.7.2.1")}:
9494
DECOMPRESS[5] = decode_zstd0
9595
DECOMPRESS[6] = decode_zstd1
9696

0 commit comments

Comments
 (0)