Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: enable czifile workaround for 2019.7.2.1 #1246

Merged
merged 2 commits into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/project_dict.pws
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
personal_ws-1.1 en 15
personal_ws-1.1 en 16
napari
autoupdate
aspell
Expand All @@ -14,3 +14,4 @@ changelog
czi
PartSeg
ROI
czifile
2 changes: 1 addition & 1 deletion package/PartSegImage/image_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def decode_zstd0(data: bytes) -> np.ndarray:
return np.frombuffer(imagecodecs.zstd_decode(data), dtype).copy()


if parse_version(version("czifile")) == parse_version("2019.7.2"):
if parse_version(version("czifile")) in {parse_version("2019.7.2"), parse_version("2019.7.2.1")}:
DECOMPRESS[5] = decode_zstd0
DECOMPRESS[6] = decode_zstd1

Expand Down
Loading