8000 Add displacements and momenta outputs by frostedoyster · Pull Request #63 · metatensor/metatomic · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add displacements and momenta outputs #63

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

frostedoyster
Copy link
Contributor
@frostedoyster frostedoyster commented Jul 16, 2025

This PR adds displacements and momenta as standard outputs

Contributor (creator of pull-request) checklist

  • Tests updated (for new features and bugfixes)?
  • Documentation updated (for new features)?
  • Issue referenced (for PRs that solve an issue)?

Reviewer checklist

  • CHANGELOG updated with public API or any other important changes?

📚 Download documentation for this pull-request

@frostedoyster frostedoyster force-pushed the displacements-and-momenta branch 3 times, most recently from 1b5fa16 to 6dd8b0f Compare July 16, 2025 09:08
@frostedoyster frostedoyster requested a review from Luthaf July 16, 2025 09:08
@frostedoyster frostedoyster force-pushed the displacements-and-momenta branch 2 times, most recently from ff5d46d to eff1760 Compare July 16, 2025 09:28
@frostedoyster frostedoyster force-pushed the displacements-and-momenta branch from eff1760 to 953c875 Compare July 16, 2025 09:35
@@ -1082,6 +1084,11 @@ static std::map<std::string, Quantity> KNOWN_QUANTITIES = {
// alternative names
{"eV/A^3", "eV/Angstrom^3"},
}}},
{"momentum", Quantity{/* name */ "momentum", /* baseline */ "sqrt(eV*u)", {
{"sqrt(eV*u)", 1.0},
Copy link
Member

Choose a reason for hiding this comment

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

what's u?

Comment on lines +54 to +56
elif name == "displacements":
_check_displacements(value, systems, request)
elif name == "momenta":
Copy link
Member

Choose a reason for hiding this comment

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

the other outputs are not pluralized, even when applied to multiple atoms. Should we name these displacement and momentum?

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
0