8000 handle broken links, add test by lukaspie · Pull Request #645 · FAIRmat-NFDI/pynxtools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

handle broken links, add test #645

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

Conversation

lukaspie
Copy link
Collaborator

Fixes #644

We could disentangle the logic of is_documented a bit further from checking that the key is actually valid in the future, but for now, it should be fine.

@lukaspie lukaspie linked an issue May 25, 2025 that may be closed by this pull request
@lukaspie
Copy link
Collaborator Author
lukaspie commented May 25, 2025

pynxtools-spm and pynxtools-xrd are failing since merging #638, but they fail because of actual reasons with the individual readers (and we are a bit stricter in the validation logs now). Since Rubel is currently not available, we have agreed to ignore these failing tests for now.

@lukaspie lukaspie requested a review from rettigl May 25, 2025 16:13
Copy link
Collaborator
@rettigl rettigl left a comment

Choose a reason for hiding this comment

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

lgtm

@rettigl
Copy link
Collaborator
rettigl commented May 25, 2025

I am a little bit hesitant regarding the promotion of MissingRequired to "ERROR". If there are conflicts in the dict, then these could be errors, but this is just a validation issue, and does not per se invalidate the file. I find this a bit misleading, if writing a partial appdef results an an "ERROR", and would opt for reverting this.

@lukaspie
Copy link
Collaborator Author

I am a little bit hesitant regarding the promotion of MissingRequired to "ERROR". If there are conflicts in the dict, then these could be errors, but this is just a validation issue, and does not per se invalidate the file. I find this a bit misleading, if writing a partial appdef results an an "ERROR", and would opt for reverting this.

My reasoning was that if you check against the appdef and you miss a required element, this is an error w.r.t to what the appdef defines, i.e. it is not compliant with that particular application definition. I guess it comes down to what we want the validation to be. IMO, this is (at least) partially what NeXus is about, definining a set of concepts that have to be present for a data file to describe a given experiment. But I would be open to changing my mind here.

@lukaspie lukaspie merged commit fab147d into master May 26, 2025
15 of 17 checks passed
@lukaspie lukaspie deleted the 644-bug-validation-fails-with-key-error-if-link-cannot-be-resolved branch May 26, 2025 19:28
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.

[Bug]: Validation fails with key error if link cannot be resolved
2 participants
0