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

Fix the plugin setup #2

Merged
merged 4 commits into from
Jul 5, 2024
Merged

Fix the plugin setup #2

merged 4 commits into from
Jul 5, 2024

Conversation

ndaelman-hu
Copy link
Collaborator

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.

Nathan Daelman added 2 commits July 3, 2024 16:55
- Distinguish between parser reference and entry point reference
- TODO: fix `m_annotations` overloading
@ndaelman-hu ndaelman-hu added this to the tutorial_14 milestone Jul 3, 2024
@ndaelman-hu ndaelman-hu requested a review from ladinesa July 3, 2024 19:00
@ndaelman-hu ndaelman-hu self-assigned this Jul 3, 2024
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)
Copy link
Collaborator

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

Copy link
Collaborator Author

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

@ladinesa
Copy link
Collaborator

ladinesa commented Jul 3, 2024

I think this shouldalready work.

@ndaelman-hu
Copy link
Collaborator Author

I think this shouldalready work.

Me too. Simulation has the proper m_annotations and XMLParser reads in all the tags...
But after convert, Simulation remains empty.



Program.name.m_annotations['xml'] = MappingAnnotationModel(
path='.i[?"@name"="program"]'
Copy link
Collaborator

@ladinesa ladinesa Jul 3, 2024

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"]'
Copy link
Collaborator

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"]'
Copy link
Collaborator

Choose a reason for hiding this comment

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

alao here

@ndaelman-hu
Copy link
Collaborator Author

Mostly fixed, but have to close this branch for the upcoming tutorial. Will revisit in the future.

@ndaelman-hu ndaelman-hu merged commit 464f692 into first_version Jul 5, 2024
1 of 3 checks passed
@ndaelman-hu ndaelman-hu deleted the plugin_setup branch July 5, 2024 12:40
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.

3 participants