Skip to content

Commit

Permalink
fix from_hdf()
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Dec 26, 2023
1 parent 17de524 commit 248afef
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pyiron_atomistics/lammps/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1082,9 +1082,8 @@ def from_hdf(self, hdf5):
hdf5:
Returns:
"""
with hdf5.open("input") as hdf5_input:
self.from_dict(
data_dict=hdf5_input.read_dict_from_hdf(
["input", "input/control_inp", "input/potential_inp"]
)
self.from_dict(
data_dict=hdf5.read_dict_from_hdf(
["input", "input/control_inp", "input/potential_inp"]
)
)

0 comments on commit 248afef

Please sign in to comment.