Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR narrows the dispersion-related schema to empirical dispersion corrections only by renaming the contribution section to EmpiricalDispersionModel and removing nonlocal-correlation-specific entries from this schema path (to be handled separately via NonlocalCorrelation).
Changes:
- Renamed
ExplicitDispersionModeltoEmpiricalDispersionModeland restricted the allowedmodelenum to empirical families only. - Removed nonlocal-correlation-related fields/options (e.g., VV10/rVV10 families,
nonlocal_kernel,is_embedded_in_xc) from the empirical dispersion contribution and numerical knob schema. - Updated unit tests to use
EmpiricalDispersionModel.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
tests/test_model_method.py |
Updates imports/usage and assertions to the renamed EmpiricalDispersionModel. |
src/nomad_simulations/schema_packages/numerical_settings.py |
Refines dispersion knob/settings semantics to empirical-only (removes nonlocal-kernel-related enum values/docs). |
src/nomad_simulations/schema_packages/model_method.py |
Renames the dispersion contribution section and removes nonlocal-correlation variants/options from the empirical dispersion model enum/schema. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Bernadette-Mohr
approved these changes
Feb 26, 2026
Collaborator
Bernadette-Mohr
left a comment
There was a problem hiding this comment.
Not my domain exactly, but looks fine to me!
JFRudzinski
approved these changes
Feb 26, 2026
ndaelman-hu
approved these changes
Feb 26, 2026
Collaborator
ndaelman-hu
left a comment
There was a problem hiding this comment.
Update to section names and definition terminology. Passes the testing. All good.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This PR refines the dispersion schema to cover empirical dispersion models only and removes non-empirical/nonlocal correlation entries from this path.
After some parsing and discussions with Denis, we realized that
EmpiricalDispersionModelwould be a better fit hereScope
Included
EmpiricalDispersionModelfor consistency with existing semantics.Out of scope
NonlocalCorrelationin another branch/PR implementNonlocalCorrelation#328Context & Links
Reminder: Link related issues or PRs (in the sidebar or below). Add short description for any needed context.
NonlocalCorrelation#328Reviewer Notes
I renamed the related numerical settings to
EmpiricalDispersionKnobandEmpiricalDispersionSettingsto matchEmpiricalDispersionModeland to keep this branch empirical-only. Do you prefer these explicit names, or shorterDispersionKnob/DispersionSettingswith the empirical scope implied by context?Status
Breaking Changes
It renames sections, but these have not yet been used in any of the merged parsers
Dependencies / Blockers
Testing / Validation
How was this change validated?