Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove to_hdf() and from_hdf() from calphy job #1539

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jan-janssen
Copy link
Member

No description provided.

@jan-janssen
Copy link
Member Author


======================================================================
ERROR: test_output (calphy.test_base.TestCalphy)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/pyiron_atomistics/pyiron_atomistics/tests/calphy/test_base.py", line 164, in test_output
    float(self.output_project["solid_job"].output.spring_constant),
  File "/usr/share/miniconda3/envs/my-env/lib/python3.10/site-packages/pyiron_base/project/generic.py", line 1807, in __getitem__
    return self._get_item_helper(item=item, convert_to_object=True)
  File "/usr/share/miniconda3/envs/my-env/lib/python3.10/site-packages/pyiron_base/project/generic.py", line 1867, in _get_item_helper
    return self.load(item)
  File "/usr/share/miniconda3/envs/my-env/lib/python3.10/site-packages/pyiron_base/project/jobloader.py", line 105, in __call__
    return super().__call__(job_specifier, convert_to_object=convert_to_object)
  File "/usr/share/miniconda3/envs/my-env/lib/python3.10/site-packages/pyiron_base/project/jobloader.py", line 76, in __call__
    return self._project.load_from_jobpath(
  File "/home/runner/work/pyiron_atomistics/pyiron_atomistics/pyiron_atomistics/project.py", line 333, in load_from_jobpath
    job = super(Project, self).load_from_jobpath(
  File "/usr/share/miniconda3/envs/my-env/lib/python3.10/site-packages/pyiron_base/project/generic.py", line 1147, in load_from_jobpath
    job = job.to_object()
  File "/usr/share/miniconda3/envs/my-env/lib/python3.10/site-packages/pyiron_base/jobs/job/core.py", line 597, in to_object
    return self.project_hdf5.to_object(object_type, **qwargs)
  File "/usr/share/miniconda3/envs/my-env/lib/python3.10/site-packages/pyiron_base/storage/hdfio.py", line 1172, in to_object
    return _to_object(self, class_name, **kwargs)
  File "/usr/share/miniconda3/envs/my-env/lib/python3.10/site-packages/pyiron_base/storage/hdfio.py", line 158, in _to_object
    obj.from_hdf(hdf=hdf.open(".."), group_name=hdf.h5_path.split("/")[-1])
  File "/usr/share/miniconda3/envs/my-env/lib/python3.10/site-packages/pyiron_base/jobs/job/generic.py", line 1256, in from_hdf
    self.from_dict(obj_dict=job_dict)
  File "/home/runner/work/pyiron_atomistics/pyiron_atomistics/pyiron_atomistics/calphy/job.py", line 1007, in from_dict
    self.input.from_dict(obj_dict=obj_dict["input"]["inputdata"])
KeyError: 'inputdata'

@jan-janssen jan-janssen marked this pull request as draft August 24, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant