sunpeek.components.helpers.ComponentParam#

class sunpeek.components.helpers.ComponentParam(unit=None, minimum=-inf, maximum=inf, param_type='scalar')#

Bases: object

Used to define parameters which are represented by Quantities, with optional limit checking.

Variables:
  • unit (compatible unit)

  • minimum (value of the parameters should not be below this)

  • maximum (value of the parameters should not be above this)

  • array_type (either "scalar" or "array", defaults to used to create the correct database column types and apply checks correctly.)

Methods

__init__([unit, minimum, maximum, param_type])