Skip to content

Commit

Permalink
Format black
Browse files Browse the repository at this point in the history
  • Loading branch information
pyiron-runner committed Jan 10, 2024
1 parent a3fa288 commit 569cd35
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyiron_workflow/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def __post__(
*args,
overwrite_save: bool = False,
run_after_init: bool = False,
**kwargs
**kwargs,
):
hardcoded_tinybase_filename = "project.h5"
save_exists = self.working_directory.file_exists(hardcoded_tinybase_filename)
Expand Down Expand Up @@ -1075,6 +1075,7 @@ def save(self):
i.e. the same data IO channel values, the same flags, etc.
"""
self.to_storage(self.storage)

save.__doc__ += _save_load_warnings

def load(self):
Expand All @@ -1091,11 +1092,13 @@ def load(self):
f"but the saved node has type {self.storage['class_name']}"
)
self.from_storage(self.storage)

save.__doc__ += _save_load_warnings

@property
def storage(self):
from pyiron_contrib.tinybase.project.h5io import SingleHdfProject

return SingleHdfProject.open_location(
str(self.working_directory.path.resolve())
).create_storage(self.label)

0 comments on commit 569cd35

Please sign in to comment.