Skip to content

[bugfix] use try/except to import lazyattr#10

Open
psobolewskiPhD wants to merge 2 commits into
BodenmillerGroup:mainfrom
psobolewskiPhD:czifile_change
Open

[bugfix] use try/except to import lazyattr#10
psobolewskiPhD wants to merge 2 commits into
BodenmillerGroup:mainfrom
psobolewskiPhD:czifile_change

Conversation

@psobolewskiPhD
Copy link
Copy Markdown

In tifffile 2025.2.18 lazyattr was removed.
In czifile 2019.7.2.1 lazyattr was added.

This PR uses try/except to get lazyattr imported, first checking tifffile (to keep backwards compatibility) and then czifile.

I tested locally. Before this PR, I cannot load CZI without also doing tifffile<2025.2.18. With this PR, the same file opens again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant