Commit b5ed5d08 authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[core][dataset] Add method for obtaining metadata info for a key

parent 118e61ff
......@@ -404,6 +404,10 @@ class Dataset():
_logger.info("Dimension {} of size {} has been added for reshaping"
.format(dimension.name, dimension.size))
def get_metadata_values(self, kind, key):
return numpy.unique([data.get_value(kind=kind, name=key)[0] for data
in self.data.metadata])
def __compute_changing_value(self, values, changing_value=1):
"""
Recursive method used to calculate how fast is a dimension. The speed of a dimension is the number of
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment