Allow calculation of isolated atom #426
Closed
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.
Description
Motivation and Context
Previous version of nequip could not calculate the energy of an isolate atom. One often wants to create loss functions that fit relative energies (not just total energies). If an isolated atom cannot be calculated, then it prevents supermolecular calculation of molecule-atomic ion interactions, for example. A discussion of this issue, and the calculation of well-separated dimers, can be found on the allegro github project: mir-group/allegro#82
How Has This Been Tested?
I followed the nequip/allegro tutorial to generate si-deployed.pth. I then created a python script that reads the model file and an ase xyz file. The model is used to calculate the energy and forces. The energy of a well-separated dimer is verified to be twice the energy of the monomer.
Test environment
pytest tests/unit/
log attached as unit_test.logpytest tests/
log attached as test.logTypes of changes
Checklist:
black
.docs/options
) has been updated with new or changed options.CHANGELOG.md
.