|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Public Member Functions | |
| None | __post_init__ (self) |
| bool | applies_to (self, str model) |
Static Public Attributes | |
| tuple | choices [str, ...] |
| tuple | models = () |
A categorical choice a component accepts. Parameters are numbers; some configuration is not. Which friction correlation to use, which Crane fitting a bend is, whether a valve's characteristic is linear or equal-percentage -- all real configuration, none of it a float. Choices are enumerated, so an invalid one fails at load with the valid set listed, and a UI can render a dropdown from the declaration. This is what makes "the choice of correlation is a parameter like anything else" true rather than aspirational.
| None feedtwin.model.spec.OptionSpec.__post_init__ | ( | self | ) |
Definition at line 119 of file spec.py.
References choices, and feedtwin.model.spec.ParamSpec.default.
| bool feedtwin.model.spec.OptionSpec.applies_to | ( | self, | |
| str | model ) |
Definition at line 128 of file spec.py.
References feedtwin.model.curve.CurveSpec.models, models, and feedtwin.model.spec.ParamSpec.models.
|
static |
Definition at line 114 of file spec.py.
Referenced by __post_init__().
|
static |
Definition at line 117 of file spec.py.
Referenced by feedtwin.model.spec.ComponentSpec.__post_init__(), applies_to(), feedtwin.model.spec.ComponentSpec.defaults(), feedtwin.model.spec.ComponentSpec.validate(), feedtwin.model.spec.ComponentSpec.validate_curves(), and feedtwin.model.spec.ComponentSpec.validate_options().