-
Notifications
You must be signed in to change notification settings - Fork 10
Fixes child retrieval for fields #256
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
Pull Request Test Coverage Report for Build 8008938554Warning: 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 |
This fix solves the original issue (Exception being raised), but does not seem to do the right thing either. With this fix, I get these error reports from the convert function:
It seems like for several other fields now, the field name is removed while the attributes are directly added to the parent group name. |
Do we have/can we write unit tests that test for the correct behavior of inheritance in different scenarios? |
Yes, I thought that there is a misconception on my side as I just debugged this based on one key. But this makes sense from the change I introduced. Are you able to provide your files you use for conversion? It might be easier to test on the actual problem.
We have unit tests but obviously not for this particular case. Also coverage for it can be improved. I hope to add some additional tests with or after the verification is finished #133. |
I went through it again and I think the fix is fine. However, I forgot to change the path when writing the required keys to the template. I updated it and these errors are gone for me (at least for the NXmpes example) and the NxdlAttributeError is still gone. @rettigl Could you give it a try once more? |
Works now for me as well |
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.
While I don't understand the details, it fixes my issue, and does not seem to introduce other errors
This fixes the child retrievel which resulted in an error for non-existing fields, because parts of the nxdl paths were removed