Skip to content

Commit

Permalink
Merge b9b1896 into c034d0b
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Jun 9, 2023
2 parents c034d0b + b9b1896 commit b850a4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyiron_base/jobs/job/extension/server/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def to_hdf(self, hdf, group_name=None):
if len(self.additional_arguments) > 0:
hdf_dict["additional_arguments"] = self.additional_arguments
if self._gpus is not None:
hdf_dict["accept_crash"] = self._gpus
hdf_dict["gpus"] = self._gpus

if group_name is not None:
with hdf.open(group_name) as hdf_group:
Expand Down Expand Up @@ -509,7 +509,7 @@ def from_hdf(self, hdf, group_name=None):
if "additional_arguments" in hdf_dict.keys():
self.additional_arguments = hdf_dict["additional_arguments"]
if "gpus" in hdf_dict.keys():
self._gpus = hdf_dict["accept_crash"]
self._gpus = hdf_dict["gpus"]
self._new_hdf = hdf_dict["new_h5"] == 1

def db_entry(self):
Expand Down

0 comments on commit b850a4d

Please sign in to comment.