Skip to content

Commit

Permalink
Merge pull request #1379 from pyiron/1378-fix_get_structure-for-sphinx
Browse files Browse the repository at this point in the history
changed the generic cells property
  • Loading branch information
samwaseda authored Apr 17, 2024
2 parents 0602a39 + 6a20796 commit 2df0ae1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pyiron_atomistics/sphinx/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2146,8 +2146,11 @@ def get_last(arr):
self.generic.energy_pot = self.generic.dft.energy_free
if "positions" not in self.generic.list_nodes():
self.generic.positions = np.array([self._job.structure.positions])
if "cells" not in self.generic.list_nodes():
self.generic.cells = np.array([self._job.structure.cell.tolist()])
if (
"cells" not in self.generic.list_nodes()
and "cell" in self.generic.list_nodes()
):
self.generic.cells = self.generic.cell
self.generic.to_hdf(hdf=hdf)

with hdf.open("output") as hdf5_output:
Expand Down

0 comments on commit 2df0ae1

Please sign in to comment.