-
Notifications
You must be signed in to change notification settings - Fork 8
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
Correct validation for required fields in variadic groups #314
Conversation
|
Pull Request Test Coverage Report for Build 8844173385Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
We also have a second problem here: pynxtools/pynxtools/dataconverter/helpers.py Lines 514 to 516 in 10b1c44
The Also the new field name doesn't end up in the |
I like this idea. Please give it a try. We also have this func: pynxtools/pynxtools/dataconverter/helpers.py Line 541 in 10b1c44
If somehow we need a complete Template to correctly place such a field, this func can help. But it's another loop so it will be better to avoid this. |
@sherjeelshabih I got a first version working, which also does the group checking. I still need to clean it up a bit but if you want to have a look already feel free to comment on it already. Edit: It's cleaned up now and ready to be reviewed |
I also added a collector class so we can actually check whether a validation was successful or not and bundle the logging in one place. This is needed for #133. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes
Additions
This adds a
Collector
class for the validation to collect and log validation problems in one central place. This can be used for a verifier.Initial problem
Since merging of #310 I get the following error with the mpes example:
This PR attempts to fix the issue and adds tests for the particular issue