Skip to content

Refactor: replace the JSON path walker with schema operations - #7994

Merged
mohanchen merged 1 commit into
deepmodeling:developfrom
Growl1234:json
Sep 21, 2026
Merged

mohanchen merged 1 commit into
deepmodeling:developfrom
Growl1234:json

Conversation

@Growl1234

Copy link
Copy Markdown

This PR further simplifies the JSON workflow after #7979 by removing the custom jsonKeyNode path abstraction and generic JSON walker, and using native nlohmann::ordered_json operations directly against the ABACUS output schema.

AbacusJson is reduced to document ownership and serialization, while init, general_info, and output now manage their own schema-specific updates and validation. The existing strict output-record lifecycle checks are preserved, tests are reduced to ABACUS-specific behavior rather than re-testing generic JSON operations, and the JSON developer documentation is updated accordingly. Overall, this removes a substantial amount of migration-era abstraction without changing the intended abacus.json schema.

Copilot AI lite review requested due to automatic review settings September 19, 2026 18:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@ZhouXY-PKU ZhouXY-PKU left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice job!

@mohanchen mohanchen added Compile & CICD & Docs & Dependencies Issues related to compiling ABACUS Input&Output Suitable for coders without knowing too many DFT details labels Sep 21, 2026
@mohanchen
mohanchen merged commit 3a46458 into deepmodeling:develop Sep 21, 2026
17 checks passed
@Growl1234
Growl1234 deleted the json branch September 21, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Compile & CICD & Docs & Dependencies Issues related to compiling ABACUS Input&Output Suitable for coders without knowing too many DFT details

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants