Skip to content

Solves Bayer-Group/tiffslide#91 #92

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

Merged
merged 2 commits into from
Mar 7, 2025
Merged

Conversation

stergioc
Copy link
Contributor

Using the names of the resolution units instead of the ENUM that is not available in the newest version of tifffile==v2025.2.18

Solves #91

@stergioc stergioc requested a review from ap-- as a code owner February 24, 2025 20:19
Copy link
Collaborator

@ap-- ap-- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR @stergioc ❤️

Could you check if using the RESUNIT enum from the correct namespace works for you too, and update the PR?

Cheers,
Andreas 😃

Comment on lines 749 to 754
"INCH": 25400.0,
"CENTIMETER": 10000.0,
"MILLIMETER": 1000.0,
"MICROMETER": 1.0,
"NONE": None,
}.get(resolution_unit.name, None)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @stergioc

I think tifffile.TIFF.RESUNIT is deprecated in favour of tifffile.RESUNIT.

Could you adjust your PR to avoid the string keys, and use the enums?

Thanks ☺️

@ap-- ap-- merged commit a16b368 into Bayer-Group:main Mar 7, 2025
2 of 10 checks passed
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.

2 participants