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

bugfix/catch-invalid-XMLAnnotationID #455

Closed

Conversation

tlambert03
Copy link
Collaborator

@tlambert03 tlambert03 commented Dec 15, 2022

Description

fixes #454

This PR is sufficient to get the xml/h5 dataset linked in the original issue reading with the bioformats reader... (and lets me think a bit longer about how I want to handle invalid schemas over in ome-types)

Pull request recommendations:

  • Name your pull request your-development-type/short-description. Ex: feature/read-tiff-files
  • Link to any relevant issue in the PR description. Ex: Resolves [gh-], adds tiff file format support
  • Provide relevant tests for your feature or bug fix.
  • Provide or update documentation for any feature added by your pull request.

Thanks for contributing!

@codecov-commenter
Copy link

codecov-commenter commented Dec 15, 2022

Codecov Report

Base: 94.00% // Head: 93.91% // Decreases project coverage by -0.09% ⚠️

Coverage data is based on head (9adc76b) compared to base (b9925b3).
Patch coverage: 33.33% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #455      +/-   ##
==========================================
- Coverage   94.00%   93.91%   -0.10%     
==========================================
  Files          46       46              
  Lines        4021     4027       +6     
==========================================
+ Hits         3780     3782       +2     
- Misses        241      245       +4     
Impacted Files Coverage Δ
aicsimageio/metadata/utils.py 88.62% <33.33%> (-1.62%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@tlambert03 tlambert03 changed the title fix: catch invalid XMLAnnotationID bugfix/catch-invalid-XMLAnnotationID Dec 15, 2022
Copy link
Collaborator

@AetherUnbound AetherUnbound left a comment

Choose a reason for hiding this comment

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

Looks good! Are there any tests we could add for this?

Copy link
Collaborator

@evamaxfield evamaxfield left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@evamaxfield
Copy link
Collaborator

@AetherUnbound I am okay without new test data being added. Is that a hard req from you or okay to merge?

@tlambert03
Copy link
Collaborator Author

I could also mock some fake data without a file.

I also fixed/test this in ome types tlambert03/ome-types#159

@toloudis
Copy link
Collaborator

Not to confuse things, but should we just update ome-types min version and call it good? (No objection from me either way)

Copy link
Collaborator

@AetherUnbound AetherUnbound left a comment

Choose a reason for hiding this comment

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

Nope! Not a dealbreaker, just thought I'd mention in case it was an easy thing to throw in 🙂

@evamaxfield
Copy link
Collaborator

Not to confuse things, but should we just update ome-types min version and call it good? (No objection from me either way)

We will have to wait for @tlambert03's answer but I agree. If there is no difference between the two then why not?

@tlambert03
Copy link
Collaborator Author

That works for me too! Let me also try to test in on windows, since the original poster reported there might still be an issue

@SeanLeRoy
Copy link
Collaborator

Does this seem good to merge? @tlambert03

@tlambert03
Copy link
Collaborator Author

actually, I think you can just close this ... it should have been fixed by tlambert03/ome-types#159 which has since been released in ome-types v0.3.3

@tlambert03
Copy link
Collaborator Author

I'll go ahead and do that for you :) if it comes up again feel free to ping me

@tlambert03 tlambert03 closed this Apr 5, 2023
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.

XMLSchemaValidationError when reading xml/h5 dataset
6 participants