Skip to content

Commit

Permalink
Use table name in from_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrv committed Feb 23, 2024
1 parent d8543f3 commit ae917c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyiron_atomistics/lammps/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1048,8 +1048,8 @@ def _load_default_bond_params(self):
self.bond_dict["O"]["angle_type_list"] = [1]

def from_dict(self, data_dict):
self.control.from_dict(data_dict["control_inp"])
self.potential.from_dict(data_dict["potential_inp"])
self.control.from_dict(data_dict[self.control.table_name])
self.potential.from_dict(data_dict[self.potential.table_name])
if "bond_dict" in data_dict.keys():
self.bond_dict = data_dict["bond_dict"]

Expand Down

0 comments on commit ae917c6

Please sign in to comment.