-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix the plugin setup #2
Conversation
- Distinguish between parser reference and entry point reference - TODO: fix `m_annotations` overloading
xml_parser = XMLParser(filepath='vasprun.xml') # TODO apply match | ||
xml_parser.convert(archive_parser) | ||
archive.data = archive_parser.data_object | ||
logger.info('VasprunXMLParser.parse', parameter=configuration.parameter) |
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.
if this is a matching parsee you would meed to.add parsee specs
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.
You mean like the filename to match? I already added it to XMLParser
I think this shouldalready work. |
Me too. |
|
||
|
||
Program.name.m_annotations['xml'] = MappingAnnotationModel( | ||
path='.i[?"@name"="program"]' |
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.
pls try to use simgle quotes inside somerimes jnespath is crazy and it should be ==
|
||
|
||
Program.version.m_annotations['xml'] = MappingAnnotationModel( | ||
path='.i[?"@name"="version"]' |
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.
also here
|
||
# ? compilation mode | ||
Program.compilation_host.m_annotations['xml'] = MappingAnnotationModel( | ||
path='.i[?"@name"="platform"]' |
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.
alao here
Mostly fixed, but have to close this branch for the upcoming tutorial. Will revisit in the future. |
Follow the example in https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-FAIR/-/merge_requests/1655/
Before merging, make sure to add the full extraction.