-
Notifications
You must be signed in to change notification settings - Fork 21
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
anyway to read energy, force and stress from extxyz? #87
Comments
Have you tried Before using or if this is not the answer you wanted could you explain in more detail? |
hi @YutackPark I mean I have a dataset in Thanks |
Hi, SevenNet can directly read .extxyz files for training. https://github.com/MDIL-SNU/SevenNet/blob/main/sevenn%2Fpresets%2Fbase.yaml You can put your .extxyz files into |
hi @YutackPark Thank you for your guide. I as understand, try:
y_energy = atoms.get_potential_energy(force_consistent=True)
except NotImplementedError:
y_energy = atoms.get_potential_energy()
y_force = atoms.get_forces(apply_constraint=False)
try:
# xx yy zz xy yz zx order
# We expect this is eV/A^3 unit
# (ASE automatically converts vasp kB to eV/A^3)
# So we restore it
y_stress = -1 * atoms.get_stress()
y_stress = np.array([y_stress[[0, 1, 2, 5, 3, 4]]])
except RuntimeError:
y_stress = None function May I wrong? |
I understood what you want to do. If that's the case, there is no direct way to achieve what you are trying to do, as SevenNet doesn't know how the extxyz stored their energy, force, and stress that is not stored with a calculator. To make things work, a python script is needed to re-stored the data into atoms object, this time with the Check my first answer of this issue: #61 You can store your EFS with the |
Dear Developers,
I try to use SevenNet with initial data in
extxyz
format.The problem is that I cannot process the data when your implemetation eventually required an
ase.calculator
to compute quantities.You may be awared that
extxyz
can store per-config and per-atom properties like energy, stress, forces,..So my question is anyway to read such properties without need to compute with an
ase.calculator
? (I know how to get them fromase.Atoms
. This link is the way they are read in MACE suit)Thanks.
The text was updated successfully, but these errors were encountered: