Saving a python dictionary in hdf5 where values corresponding to each key is another dictionary

Viewed 2031

I have a python dictionary like this

`my_dict = {'name_1' : {'value1' : a float32 numpy array, 
                        'value2' : a float32 numpy array}
           {'name_2' : {'value1' : a float32 numpy array, 
                        'value2' : a float32 numpy array}}`

How can I save it in hdf5 using h5py so that I can later on access the key-value pairs as they are represented now in the python dictionary?

0 Answers
Related