Skip to content
Snippets Groups Projects
Commit f31f3150 authored by Vincent POLLET's avatar Vincent POLLET
Browse files

Bugfix: MetaDataInfo add_metadatum method now adds the metadatum with the correct name

parent e2335093
No related branches found
No related tags found
1 merge request!22Draft: Implements metadata handling for bob.io.stream.Stream and bob.io.stream.StreamFile
......@@ -319,7 +319,7 @@ class MetaDataInfo:
"""
if metadatum_name in self._info.keys():
raise KeyError("Metadatum with name " + metadatum_name + " already exists in the metadatum info!")
self._info["metadatum_name"] = properties if properties is not None else {}
self._info[metadatum_name] = properties if properties is not None else {}
def has_info_value(self, info_name, info_value, metadatum_name=None):
"""Return a list of the metadatum that have the `info_name` property with the `info_value` value.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment