Skip to content

Commit

Permalink
Use H5ioStorage directly
Browse files Browse the repository at this point in the history
Instead of the project
  • Loading branch information
liamhuber committed Jan 16, 2024
1 parent 10db67c commit 110a8f7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pyiron_workflow/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1097,8 +1097,9 @@ def load(self):

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

return SingleHdfProject.open_location(
str(self.working_directory.path.resolve())
).create_storage(self.label)
# UGLY -- make sure it exists, as accessing .path directly doesn't!
storage_file = str((self.working_directory.path / "project.h5").resolve()) # self.label
return H5ioStorage(Pointer(storage_file), None)

0 comments on commit 110a8f7

Please sign in to comment.