Skip to content

Add nomad-file-parser dependency and migrate imports#178

Open
ndaelman-hu wants to merge 3 commits into
developfrom
feature/add-nomad-file-parser-dependency
Open

Add nomad-file-parser dependency and migrate imports#178
ndaelman-hu wants to merge 3 commits into
developfrom
feature/add-nomad-file-parser-dependency

Conversation

@ndaelman-hu

Copy link
Copy Markdown
Collaborator

Purpose

Migrate file parsing utilities from nomad-lab to the new nomad-file-parser package to decouple parser infrastructure from core NOMAD.

Scope

Included

  • Add nomad-file-parser as dependency (tracking develop branch)
  • Update all imports across 46 files:
    • nomad.parsing.file_parsernomad_file_parser
    • nomad.parsing.file_parser.mapping_parsernomad_file_parser.mapping_parser
    • nomad.parsing.file_parser.text_parsernomad_file_parser.text_parser
    • nomad.parsing.file_parser.xml_parsernomad_file_parser.xml_parser
  • Apply ruff formatting

Out of scope

  • No functional changes to parsers
  • Submodule configuration (handled at distro level)

Context & Links

Reviewer Notes

This is a pure refactoring - all tests pass with the new imports. The nomad-file-parser package contains the same file parsing utilities that were previously in nomad-lab.

Status

  • Ready for review

Breaking Changes

  • None (imports are internal to parsers)

Testing / Validation

  • Unit tests: FHI-aims tests pass (5/5)
  • Ruff: All checks pass

@ndaelman-hu ndaelman-hu requested a review from ladinesa May 27, 2026 12:28
@ndaelman-hu

Copy link
Copy Markdown
Collaborator Author

@ladinesa you need make the repo public for the CI/CD to install the dependency

Update all imports to use the new nomad-file-parser package:
- nomad.parsing.file_parser → nomad_file_parser
- nomad.parsing.file_parser.mapping_parser → nomad_file_parser.mapping_parser
- nomad.parsing.file_parser.text_parser → nomad_file_parser.text_parser
- nomad.parsing.file_parser.xml_parser → nomad_file_parser.xml_parser

Affects 46 files across all parsers and schema packages.
@ladinesa ladinesa force-pushed the feature/add-nomad-file-parser-dependency branch from d611adb to 2f4dc06 Compare July 8, 2026 14:03
@ladinesa

ladinesa commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

@ndaelman-hu please fix the test then merge. thanks

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.

2 participants