sunpeek.components.helpers.ComponentParam#
- class sunpeek.components.helpers.ComponentParam(unit=None, minimum=-inf, maximum=inf, param_type='scalar')#
Bases:
objectUsed to define parameters which are represented by Quantities, with optional limit checking.
- Variables:
unit (
compatible unit)minimum (
valueofthe parameters should not be below this)maximum (
valueofthe parameters should not be above this)array_type (either
"scalar"or"array",defaultstousedtocreate the correct database column typesandapply checks correctly.)
Methods
__init__([unit, minimum, maximum, param_type])