From ae917c6afbd392bf20e10ca5bb2c45b6ef1430a1 Mon Sep 17 00:00:00 2001 From: Marvin Poul Date: Fri, 23 Feb 2024 17:18:55 +0100 Subject: [PATCH] Use table name in from_dict --- pyiron_atomistics/lammps/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyiron_atomistics/lammps/base.py b/pyiron_atomistics/lammps/base.py index 1b724a675..9a33515bb 100644 --- a/pyiron_atomistics/lammps/base.py +++ b/pyiron_atomistics/lammps/base.py @@ -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"]