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

Lazy load of pynxtools schema in NOMAD #574

Open
lukaspie opened this issue Mar 4, 2025 · 0 comments
Open

Lazy load of pynxtools schema in NOMAD #574

lukaspie opened this issue Mar 4, 2025 · 0 comments
Labels
bug Something isn't working NOMAD

Comments

@lukaspie
Copy link
Collaborator

lukaspie commented Mar 4, 2025

Loading of the pynxtools schema package can take a long time and eat up a lot of memory. We should explore options on how to limit the schema to what is required.

Just some thoughts:

  • We could lazy load the schema only when it is needed in the parser
  • We could only load parts of the schema depending on what each parser needs (i.e., if I use NXmpes, I only load that part of the schema that has the mpes appdefs as well as all the base classes that are inherited)
  • Regarding the previous point, we must think how we can deal with that in the app.
@lukaspie lukaspie added bug Something isn't working NOMAD labels Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working NOMAD
Projects
None yet
Development

No branches or pull requests

1 participant