Skip to content

Commit

Permalink
Remove to_hdf() and from_hdf() from calphy job
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Aug 24, 2024
1 parent e906a41 commit 48b6814
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions pyiron_atomistics/calphy/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -998,17 +998,15 @@ def db_entry(self):

return db_dict

def to_hdf(self, hdf=None, group_name=None):
super().to_hdf(hdf=hdf, group_name=group_name)
self.input.to_hdf(self.project_hdf5)
self._output.to_hdf(self.project_hdf5)

def from_hdf(self, hdf=None, group_name=None):
super().from_hdf(hdf=hdf, group_name=group_name)
self.input.from_hdf(self.project_hdf5)
self._output.from_hdf(self.project_hdf5)
self._potential_from_hdf()
# self.create_calc()
def to_dict(self):
obj_dict = super().to_dict()
obj_dict["input"]["inputdata"] = self.input.to_dict()
obj_dict["output"] = self._output.to_dict()

def from_dict(self, obj_dict):
self.input.from_dict(obj_dict=obj_dict["input"]["inputdata"])
if "output" in obj_dict.keys():
self._output.from_dict(obj_dict=obj_dict["output"])

@property
def publication(self):
Expand Down

0 comments on commit 48b6814

Please sign in to comment.