diff --git a/executorlib/cache/hdf.py b/executorlib/cache/hdf.py index 7f0af98f..9e8c8798 100644 --- a/executorlib/cache/hdf.py +++ b/executorlib/cache/hdf.py @@ -24,9 +24,10 @@ def dump(file_name: str, data_dict: dict) -> None: if data_key in group_dict.keys(): fname.create_dataset( name="/" + group_dict[data_key], - data=np.void(cloudpickle.dumps(data_value)) + data=np.void(cloudpickle.dumps(data_value)), ) + def load(file_name: str) -> dict: """ Load data dictionary from HDF5 file