Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Nov 23, 2023
1 parent d9063bc commit cff3d8c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pyiron_atomistics/atomistics/master/murnaghan.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ def parameter_list(self):
)
for strain in strains:
basis = _strain_axes(
self._master.structure, self._master.input["axes"], strain
structure=self._master.structure,
axes=self._master.input["axes"],
volume_strain=strain
)
parameter_lst.append([1 + np.round(strain, 7), basis])
return parameter_lst
Expand Down Expand Up @@ -151,7 +153,7 @@ def __init__(self, project, job_name):
"relative volume variation around volume defined by ref_ham",
)
self.input["axes"] = (
["x", "y", "z"],
("x", "y", "z"),
"Axes along which the strain will be applied",
)
self.input["strains"] = (
Expand Down Expand Up @@ -465,7 +467,11 @@ def _get_structure(self, frame=-1, wrap_atoms=True):
old_vol = self.structure.get_volume()
new_vol = self["output/equilibrium_volume"]
vol_strain = new_vol / old_vol - 1
return _strain_axes(self.structure, self.input["axes"], vol_strain)
return _strain_axes(
structure=self.structure,
axes=self.input["axes"],
volume_strain=vol_strain
)
elif frame == 0:
return self.structure

Expand Down

0 comments on commit cff3d8c

Please sign in to comment.