Skip to content

Commit 4e16887

Browse files
committed
fix tests
1 parent 92cff67 commit 4e16887

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • src/executorlib/standalone

src/executorlib/standalone/hdf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@ def dump(file_name: Optional[str], data_dict: dict) -> None:
3333
os.makedirs(os.path.dirname(file_name_abs), exist_ok=True)
3434
with h5py.File(file_name_abs, "a") as fname:
3535
for data_key, data_value in data_dict.items():
36-
path = "/" + group_dict[data_key]
37-
if data_key in group_dict and path not in fname:
36+
if data_key in group_dict and "/" + group_dict[data_key] not in fname:
3837
fname.create_dataset(
39-
name=path,
38+
name="/" + group_dict[data_key],
4039
data=np.void(cloudpickle.dumps(data_value)),
4140
)
4241

0 commit comments

Comments
 (0)