Commit 594cefed authored by Pierre Paleo's avatar Pierre Paleo

Replace boolean values in hdf5 before/after dictdump (h5py 2.10)

parent 7dc8ce88
......@@ -211,7 +211,7 @@ def export_dict_to_h5(dic, h5file, h5path, overwrite_data=True, mode="a"):
"""
modified_dic = convert_dict_values(
dic,
{None: "None"},
{None: "None", True: "True", False: "False"},
)
return dicttoh5(
modified_dic,
......@@ -226,7 +226,7 @@ def import_h5_to_dict(h5file, h5path, asarray=False):
dic = h5todict(h5file, path=h5path, asarray=asarray)
modified_dic = convert_dict_values(
dic,
{"None": None},
{"None": None, "True": True, "False": False},
bytes_tostring=True
)
return modified_dic
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment