MetricsExample#
- class lsst.daf.butler.tests.MetricsExample(summary: dict[str, Any] | None = None, output: dict[str, Any] | None = None, data: list[Any] | None = None)#
Bases:
objectSmorgasboard of information that might be the result of some processing.
Parameters#
- summary
dict Simple dictionary mapping key performance metrics to a scalar result.
- output
dict Structured nested data.
- data
list, optional Arbitrary array data.
Methods Summary
Convert object contents to a single python dict.
from_model(model)Create metrics from Pydantic model.
makeFromDict(exportDict)Create a new object from a dict that is compatible with that created by
exportAsDict.Methods Documentation
- exportAsDict() dict[str, list | dict | None]#
Convert object contents to a single python dict.
- classmethod from_model(model: MetricsExampleModel) MetricsExample#
Create metrics from Pydantic model.
Parameters#
- model
MetricsExampleModel Source model.
Returns#
- newobject
MetricsExample New
MetricsExampleobject.
- model
- classmethod makeFromDict(exportDict: dict[str, list | dict | None]) MetricsExample#
Create a new object from a dict that is compatible with that created by
exportAsDict.Parameters#
- exportDict
dict dictwith keys “summary”, “output”, and (optionally) “data”.
Returns#
- newobject
MetricsExample New
MetricsExampleobject.
- exportDict
- summary