Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Feb 2, 2024
1 parent 6c2791b commit 79f9846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyiron_atomistics/lammps/potential.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def to_dict(self):

def from_dict(self, obj_dict, version: str = None):
super(LammpsPotential, self).from_dict(obj_dict=obj_dict, version=version)
if "potential" in obj_dict.keys():
if "potential" in obj_dict.keys() and "Config" in obj_dict["potential"].keys():
entry_dict = {
key: [obj_dict["potential"][key]]
for key in ["Config", "Filename", "Name", "Model", "Species"]
Expand Down

0 comments on commit 79f9846

Please sign in to comment.