eradiate.experiments.MeasureRegistry#
- class eradiate.experiments.MeasureRegistry(measures)[source]#
Bases:
Sequence
A simple list wrapper holding measures, with additional lookup methods and metadata.
The constructor converts dictionaries automatically and checks for duplicate IDs (raises a {class}`ValueError` if it finds any).
- count(value) integer -- return number of occurrences of value #
- get_index(value)[source]#
Get the index corresponding to a given measure ID. Integers are passed through.
- index(value[, start[, stop]]) integer -- return first index of value. #
Raises ValueError if the value is not present.
Supporting start and stop arguments is optional, but recommended.