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
ofthe parameters should not be below this
)maximum (
value
ofthe parameters should not be above this
)array_type (either
"scalar"
or"array"
,defaults
toused
tocreate the correct database column types
andapply checks correctly.
)
Methods
__init__
([unit, minimum, maximum, param_type])