Commit b9020e41 authored by Pierre Paleo's avatar Pierre Paleo

Dont replace boolean values

parent 65898c57
Pipeline #37881 passed with stages
in 5 minutes and 17 seconds
......@@ -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", True: "True", False: "False"},
{None: "None"},
)
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, "True": True, "False": False},
{"None": None},
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