-
Notifications
You must be signed in to change notification settings - Fork 1
Adds a property string to ase_to_tensormap #55
base: main
Are you sure you want to change the base?
Conversation
Code looks fine. Lint should get fixed by |
The stress of an ASE atoms object will be most likely found in the atoms.info dict. |
Fair argument. I think we do not have yet an example using stress |
from attached calculators Also adds a slightly different testcase that generates random 3x3 symmetric stress matrices
values = [f.info[energy] for f in frames] | ||
else: | ||
energy = "energy" | ||
values = [f.get_potential_energy() for f in frames] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this also needs a check if energy is present right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mhh, honestly I wanted this to fail since having gradients available but not the property, seems a bit weird to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are right, forgot that this just extracts the property
Co-authored-by: Alexander Goscinski <[email protected]>
@@ -9,6 +9,8 @@ | |||
import ase | |||
import numpy as np | |||
import pytest | |||
from ase.calculators.calculator import Calculator, all_changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be removed?
No description provided.