def to_hdf5(self, h5group):
<EOL>name = '<STR_LIT>'<EOL>if self.__getattribute__(name) is not None:<EOL><INDENT>h5group.attrs[name] = self.__getattribute__(name)<EOL><DEDENT>for name in ['<STR_LIT:label>', '<STR_LIT:description>']:<EOL><INDENT>subgroup = h5group.create_group(name)<EOL>if self.__getattribute__(name):<EOL><INDENT>hdf5.dict_to_hdf5(self.__getattribute__(name), subgroup)<EOL><DEDENT><DEDENT>
Save a dictionnary-like object inside a h5 file group