pyiron_base.maintenance.update.pyiron_base_03x_to_04x.detect_bug

Contents

pyiron_base.maintenance.update.pyiron_base_03x_to_04x.detect_bug#

pyiron_base.maintenance.update.pyiron_base_03x_to_04x.detect_bug(file_name)[source]#

Checks whether HDF5 file has at least one group setup like /foo Group /foo/data Dataset {…} /foo/index Dataset {…} which is how h5io stores dtype=object arrays. If a file doesn’t have any of them there’s no need to rewrite them. If there is it might be a corrupted record from our bug or a legitimate dtype=object array. In that case just rewrite anyway.