Skip to content

Commit 7e49303

Browse files
committed
to_dict path + slash
1 parent 4c49c66 commit 7e49303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/daio/h5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def to_dict(self):
142142
Returns:
143143
dict: A dictionary representation of the HDF5 file.
144144
"""
145-
return load_from_h5(self._filepath, h5path=self._h5path)
145+
return load_from_h5(self._filepath, h5path=self._h5path+'/')
146146

147147
def from_dict(self, data, compression=None, json_compression='gzip', overwrite=False):
148148
"""Writes a dictionary to the HDF5 file or group.

0 commit comments

Comments
 (0)