.. title:: ACME lisa.energy_meter.ACME ====================== .. autoclass:: lisa.energy_meter::ACME :no-members: :no-inherited-members: :no-undoc-members: :no-private-members: :no-special-members: .. rubric:: Classes .. list-table:: :align: left * - :class:`~lisa.energy_meter.ACME.CONF_CLASS` - .. withrefctx:: :module: lisa.energy_meter :class: lisa.energy_meter.ACME.CONF_CLASS Configuration class for :class:`ACME`. .. rubric:: Attributes .. list-table:: :align: left * - :attr:`~lisa.energy_meter.ACME.INIT_KWARGS_KEY_MAP` - .. withrefctx:: :module: lisa.conf :class: lisa.conf.Configurable Dictionary of ``__init__`` parameter names to configuration key path. * - :attr:`~lisa.energy_meter.ACME.REPORT_DELAY_S` - .. withrefctx:: :module: lisa.energy_meter :class: lisa.energy_meter.ACME iio-capture returns an empty string if killed right after its invocation, so we have to enforce a delay between reset() and report(). * - :attr:`~lisa.energy_meter.ACME.name` - .. withrefctx:: :module: lisa.energy_meter :class: lisa.energy_meter.ACME .. rubric:: Properties .. list-table:: :align: left * - :attr:`~lisa.utils.Loggable.logger` :sup:`inherited` - .. withrefctx:: :module: lisa.utils :class: lisa.utils.Loggable Convenience short-hand for ``self.get_logger()``. .. rubric:: Methods .. list-table:: :align: left * - :meth:`~lisa.energy_meter.ACME.report` - .. withrefctx:: :module: lisa.energy_meter :class: lisa.energy_meter.ACME Stop iio-capture and collect sampled data. * - :meth:`~lisa.energy_meter.ACME.reset` - .. withrefctx:: :module: lisa.energy_meter :class: lisa.energy_meter.ACME Reset energy meter and start sampling from channels specified in the target configuration. * - :meth:`~lisa.energy_meter.ACME.sample` - .. withrefctx:: :module: lisa.energy_meter :class: lisa.energy_meter.ACME Get a sample from the energy meter. * - :meth:`~lisa.conf.Configurable.check_init_param` :sup:`inherited` - .. withrefctx:: :module: lisa.conf :class: lisa.conf.Configurable Take the same parameters as ``__init__``, and check their types according to what is specified in the configuration class. * - :meth:`~lisa.conf.Configurable.conf_to_init_kwargs` :sup:`inherited` - .. withrefctx:: :module: lisa.conf :class: lisa.conf.Configurable Turn a configuration object into a dictionary suitable for passing to ``__init__`` as ``**kwargs``. * - :meth:`~lisa.energy_meter.EnergyMeter.from_conf` :sup:`inherited` - .. withrefctx:: :module: lisa.energy_meter :class: lisa.energy_meter.EnergyMeter Build an instance of :class:`EnergyMeter` from a configuration object. * - :meth:`~lisa.utils.Loggable.get_logger` :sup:`inherited` - .. withrefctx:: :module: lisa.utils :class: lisa.utils.Loggable Provides a :class:`logging.Logger` named after ``cls``. * - :meth:`~lisa.utils.Loggable.log_locals` :sup:`inherited` - .. withrefctx:: :module: lisa.utils :class: lisa.utils.Loggable Debugging aid: log the local variables of the calling function. Classes ------- .. autoclass:: lisa.energy_meter::ACME.CONF_CLASS Attributes ---------- .. autoattribute:: lisa.energy_meter::ACME.INIT_KWARGS_KEY_MAP .. autoattribute:: lisa.energy_meter::ACME.REPORT_DELAY_S .. autoattribute:: lisa.energy_meter::ACME.name Properties ---------- .. autoproperty:: lisa.energy_meter::ACME.logger Methods ------- .. automethod:: lisa.energy_meter::ACME.report .. automethod:: lisa.energy_meter::ACME.reset .. automethod:: lisa.energy_meter::ACME.sample .. automethod:: lisa.energy_meter::ACME.check_init_param .. automethod:: lisa.energy_meter::ACME.conf_to_init_kwargs .. automethod:: lisa.energy_meter::ACME.from_conf .. automethod:: lisa.energy_meter::ACME.get_logger .. automethod:: lisa.energy_meter::ACME.log_locals