From 110a8f71658036d92878532b2f8f66bd9fdc61df Mon Sep 17 00:00:00 2001 From: liamhuber Date: Tue, 16 Jan 2024 13:47:40 -0800 Subject: [PATCH] Use H5ioStorage directly Instead of the project --- pyiron_workflow/node.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pyiron_workflow/node.py b/pyiron_workflow/node.py index 7707cbfb..9ad724d4 100644 --- a/pyiron_workflow/node.py +++ b/pyiron_workflow/node.py @@ -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)