pyiron/pyiron_base

table job of packed Project fails to load data

Closed this issue · 1 comments

I just stubbled across an unintended behavior for table jobs which have been packed and are now tried to be loaded in completely different environment (e.g. binder) without access to the original analysis project (not even the path can be build..., which causes the error in my case). I suggest to check if the project paths exists before trying to make a Project there...

if "project" in hdf5_input.list_nodes():
project_dict = hdf5_input["project"]
project = self.project.__class__(
path=project_dict["path"],
user=project_dict["user"],
sql_query=project_dict["sql_query"],
)
project._filter = project_dict["filter"]
project._inspect_mode = project_dict["inspect_mode"]
self.analysis_project = project

pmrv commented

Good catch! Proposed solution a-ok with me, but see the PR about adding a warning or something similar.