eradiate.experiments.MeasureRegistry¶
- class eradiate.experiments.MeasureRegistry(measures)[source]¶
Bases:
SequenceA simple list wrapper holding measures, with additional lookup methods and metadata.
The constructor converts dictionaries automatically and checks for duplicate IDs (raises a
ValueErrorif 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.