Skip to content

Commit

Permalink
add deepmd_name for spins and mag_forces
Browse files Browse the repository at this point in the history
  • Loading branch information
shiruosong committed Oct 12, 2024
1 parent ff2d6f5 commit c46fe3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dpdata/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class System:
DataType(
"coords", np.ndarray, (Axis.NFRAMES, Axis.NATOMS, 3), deepmd_name="coord"
),
DataType("spins", np.ndarray, (Axis.NFRAMES, Axis.NATOMS, 3), required=False),
DataType("spins", np.ndarray, (Axis.NFRAMES, Axis.NATOMS, 3), required=False, deepmd_name="spin"),
DataType(
"real_atom_types", np.ndarray, (Axis.NFRAMES, Axis.NATOMS), required=False
),
Expand Down Expand Up @@ -1216,7 +1216,7 @@ class LabeledSystem(System):
"forces", np.ndarray, (Axis.NFRAMES, Axis.NATOMS, 3), deepmd_name="force"
),
DataType(
"mag_forces", np.ndarray, (Axis.NFRAMES, Axis.NATOMS, 3), required=False
"mag_forces", np.ndarray, (Axis.NFRAMES, Axis.NATOMS, 3), required=False, deepmd_name="force_mag"
),
DataType(
"virials",
Expand Down

0 comments on commit c46fe3e

Please sign in to comment.