|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Public Member Functions | |
| None | __post_init__ (self) |
| float | si (self) |
| str | dimension (self) |
| tuple[float, float]|None | si_bounds (self) |
| Param | replace (self, **Any changes) |
| dict[str, Any] | to_dict (self) |
| Param | from_dict (cls, dict[str, Any] data, str where="parameter") |
| str | __str__ (self) |
Public Attributes | |
| unit | |
| source | |
| value | |
| si | |
Static Public Attributes | |
| str | reference = "" |
| Uncertainty | uncertainty = None |
One authored number, with its unit and its provenance.
The value is stored **as authored**, in the unit it was written in, and
converted on demand through :attr:`si`. Keeping the authored form is what
makes a config round-trip byte-identically: a file written in psi comes back
in psi rather than as a converted float with a trail of decimals.
Args:
value: The number, in ``unit``.
unit: A registered unit name -- see :mod:`feedtwin.model.units`.
source: Where it came from. Required.
reference: The document, test or reasoning behind it. Strongly
encouraged; a ``MEASURED`` value with no reference is not traceable
to anything and is only nominally better than a guess.
uncertainty: How well it is known, if that is established.
| str feedtwin.model.param.Param.__str__ | ( | self | ) |
Definition at line 206 of file param.py.
References feedtwin.model.curve.Curve.reference, and reference.
| str feedtwin.model.param.Param.dimension | ( | self | ) |
| Param feedtwin.model.param.Param.from_dict | ( | cls, | |
| dict[str, Any] | data, | ||
| str | where = "parameter" ) |
Definition at line 179 of file param.py.
Referenced by engine.control.robust_ddp.data_models.ControllerConfig.from_json(), engine.control.robust_ddp.data_models.ControllerConfig.from_yaml(), and calibration_robustness.SystemConfig.load().
| Param feedtwin.model.param.Param.replace | ( | self, | |
| **Any | changes ) |
| float feedtwin.model.param.Param.si | ( | self | ) |
| tuple[float, float] | None feedtwin.model.param.Param.si_bounds | ( | self | ) |
Uncertainty bounds in canonical units, or ``None`` if not stated.
Definition at line 147 of file param.py.
References uncertainty.
| dict[str, Any] feedtwin.model.param.Param.to_dict | ( | self | ) |
A plain-data form that round-trips exactly. Empty optional fields are omitted rather than written as nulls, so a file stays as terse as it was authored.
Definition at line 161 of file param.py.
References feedtwin.model.curve.Curve.reference, reference, BoardNet::State.source, feedtwin.engine.importer.EngineImportError.source, feedtwin.model.curve.Curve.source, source, to_dict(), uncertainty, unit, value, ADS126X::ADCReading.value, ads126x_reading.value, value, and ubx_item_t.value.
Referenced by calibration_robustness.SystemConfig.save(), to_dict(), engine.control.robust_ddp.data_models.ControllerConfig.to_json(), and engine.control.robust_ddp.data_models.ControllerConfig.to_yaml().
|
static |
|
static |
Definition at line 128 of file param.py.
Referenced by si_bounds(), and to_dict().
| feedtwin.model.param.Param.unit |
Definition at line 131 of file param.py.
Referenced by dimension(), and to_dict().
| feedtwin.model.param.Param.value |
Definition at line 141 of file param.py.
Referenced by feedtwin.model.param.Uncertainty.__post_init__(), feedtwin.model.param.Uncertainty.bounds(), to_dict(), and feedtwin.props.backends.coolprop.CoolPropBackend.value().