|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Public Member Functions | |
| None | __post_init__ (self) |
| tuple[float,...] | x_si (self) |
| tuple[float,...] | y_si (self) |
| tuple[float, float] | x_range_si (self) |
| float | __call__ (self, float x_si) |
| None | check_dimensions (self, str x_dimension, str y_dimension, str where) |
| dict[str, Any] | to_dict (self) |
| Curve | from_dict (cls, dict[str, Any] data, str where="curve") |
Public Attributes | |
| source | |
| x_unit | |
| y_unit | |
| x_si | |
| y_si | |
Static Public Attributes | |
| tuple | x [float, ...] |
| tuple | y [float, ...] |
| str | reference = "" |
| bool | extrapolate = False |
One tabulated relationship, stored as authored and evaluated in SI.
Args:
x: Independent values, strictly increasing, in ``x_unit``.
y: Dependent values, same length, in ``y_unit``.
x_unit, y_unit: Registered unit names.
source: Where the curve came from. Required, like any parameter.
reference: The test or document behind it.
extrapolate: Whether to hold the end values outside the range instead of
raising. Off by default and rarely right; a valve curve that stops at
90% travel genuinely does not say what happens at 100%.
| float feedtwin.model.curve.Curve.__call__ | ( | self, | |
| float | x_si ) |
Interpolate at a point given in canonical units. Linear between points. Higher-order interpolation of sparse measured data invents structure that was never measured, which matters more here than smoothness does.
Definition at line 84 of file curve.py.
References extrapolate, max, min, and x_range_si().
| None feedtwin.model.curve.Curve.__post_init__ | ( | self | ) |
Definition at line 57 of file curve.py.
References Adafruit_LIS3DH.x, x, Adafruit_LIS3DH.y, and y.
| None feedtwin.model.curve.Curve.check_dimensions | ( | self, | |
| str | x_dimension, | ||
| str | y_dimension, | ||
| str | where ) |
| Curve feedtwin.model.curve.Curve.from_dict | ( | cls, | |
| dict[str, Any] | data, | ||
| str | where = "curve" ) |
Definition at line 122 of file curve.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().
| dict[str, Any] feedtwin.model.curve.Curve.to_dict | ( | self | ) |
Definition at line 107 of file curve.py.
References extrapolate, reference, BoardNet::State.source, feedtwin.engine.importer.EngineImportError.source, source, Adafruit_LIS3DH.x, x, x_unit, Adafruit_LIS3DH.y, y, and y_unit.
Referenced by calibration_robustness.SystemConfig.save(), engine.control.robust_ddp.data_models.ControllerConfig.to_json(), and engine.control.robust_ddp.data_models.ControllerConfig.to_yaml().
| tuple[float, float] feedtwin.model.curve.Curve.x_range_si | ( | self | ) |
| tuple[float, ...] feedtwin.model.curve.Curve.x_si | ( | self | ) |
Definition at line 72 of file curve.py.
References Adafruit_LIS3DH.x, x, and x_unit.
| tuple[float, ...] feedtwin.model.curve.Curve.y_si | ( | self | ) |
Definition at line 76 of file curve.py.
References Adafruit_LIS3DH.y, y, and y_unit.
|
static |
Definition at line 55 of file curve.py.
Referenced by __call__(), and to_dict().
|
static |
Definition at line 54 of file curve.py.
Referenced by feedtwin.model.param.Param.__str__(), to_dict(), and feedtwin.model.param.Param.to_dict().
| feedtwin.model.curve.Curve.source |
Definition at line 66 of file curve.py.
Referenced by to_dict(), and feedtwin.model.param.Param.to_dict().
|
static |
Definition at line 49 of file curve.py.
Referenced by __post_init__(), engine.pipeline.thermal.gas_side.WallContour.area_elements(), to_dict(), and x_si().
| feedtwin.model.curve.Curve.x_si |
Definition at line 100 of file curve.py.
Referenced by x_range_si().
| feedtwin.model.curve.Curve.x_unit |
Definition at line 68 of file curve.py.
Referenced by check_dimensions(), to_dict(), and x_si().
|
static |
Definition at line 50 of file curve.py.
Referenced by engine.pipeline.thermal.wall_conduction.WallModel.__post_init__(), __post_init__(), engine.pipeline.thermal.wall_conduction.WallModel._build_grid(), engine.pipeline.thermal.wall_conduction.WallModel._remap(), engine.pipeline.thermal.wall_conduction.WallModel._set_capacity(), engine.pipeline.thermal.wall_conduction.WallModel.depth_of_isotherm(), engine.pipeline.thermal.wall_conduction.WallModel.interface_temperature(), to_dict(), and y_si().
| feedtwin.model.curve.Curve.y_unit |
Definition at line 69 of file curve.py.
Referenced by check_dimensions(), to_dict(), and y_si().