MetricStore

class selene_sim.MetricStore

A simple implementation of MetricsHandler that calls a user-provided callback when metrics are output

__abstractmethods__ = frozenset({})
__init__()
get_selene_flags() list[str]

Define any arguments to the Selene executable that are required to enable the output of information pertinent to this EventHook.

For example, if Selene has a flag –provide-foo that enables emitting [(‘FOO:VALUE’, value)] events to the result stream, this method should return [’–provide-foo’].

on_new_shot()

If this EventHook stores information on a shot-by-shot basis, implement this method to handle the creation of a new shot.

shots: list[dict[str, dict[str, float | int | bool | str]]] = []
try_invoke(tag: str, data: list)

Check the tag to see if it is relevant to this EventHook. If so, parse the data and return True.