Skip to content

Dictionary Handling #118

Description

@mgt16-LANL

I'm having trouble with h5io_browser saving/reading dictionaries. I'm not sure if this was a recent change because this would work previously.

Version = '0.1.8'

This works:

import h5io_browser

td = {'example':'thing','thing2':{'0':1,'1':2}}
h5io_browser.write_dict_to_hdf(file_name='example.h5',data_dict=td)

This doesn't:

import h5io_browser

td = {'example':'thing','thing2':{0:1,1:2}}
h5io_browser.write_dict_to_hdf(file_name='example.h5',data_dict=td)

The keys in the dictionary have to be strings?

This is creating issues when trying to load/save pandas dataframes in pyiron output data hdf5s.

-Michael.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions