Skip to content

Commit

Permalink
Merge pull request #919 from pyiron/fix-to_TrainingStorage
Browse files Browse the repository at this point in the history
Fix to_TrainingStorage function of Atomicrex interface
  • Loading branch information
Leimeroth authored Nov 21, 2023
2 parents 560de80 + 9f10e68 commit 5f7d9f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyiron_contrib/atomistics/atomicrex/structure_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ def _to_TrainingStorage(self, final: bool = False) -> TrainingStorage:
self.fit_properties["atomic-energy"][val_str]
* self._structures._per_chunk_arrays["length"]
)
storage.add_array(name="forces", shape=(3,), per="element")
storage._per_element_arrays["forces"][
0 : storage.num_elements
] = self.fit_properties["atomic-forces"][val_str]
Expand Down

0 comments on commit 5f7d9f7

Please sign in to comment.