|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Functions | |
| List[Type[BaseModel]] | _models_in (Any annotation) |
| Optional[Type[BaseModel]] | _dict_value_model (Any annotation) |
| str | _type_name (Any annotation) |
| Optional[List[Any]] | _choices (Any annotation) |
| Any | _default (Any fi) |
| Any | _plain (Any v) |
| bool | _differs (Any value, Any default) |
| Dict[str, Any] | _leaf (str path, str section, Any fi, Any value) |
| None | _walk (BaseModel model, str prefix, str section, List[Dict[str, Any]] out) |
| Dict[str, Any] | config_parameters (BaseModel config) |
Variables | |
| _UNIT = re.compile(r"\[([^\[\]]{1,28})\]") | |
| _NOT_UNIT = re.compile(r"[A-Z]{4,}| — | - ") | |
| list | SECTIONS |
| _SECTION_LABEL = dict(SECTIONS) | |
| LEGACY_SECTIONS = frozenset({"chamber", "nozzle"}) | |
| INTERNAL_SECTIONS = frozenset({"design_valid_for"}) | |
Every parameter a config carries, and what the schema says about it. The Parameters workspace lists these: one row per leaf of ``PintleEngineConfig``, with its current value, its schema default, whether it differs, its units (taken from the ``[unit]`` in its description) and the description itself. It walks the pydantic models, so a field added to ``config_schemas.py`` appears here without anyone remembering to list it. A block that is null in the config (``chamber: null``) is one row of kind ``block``; its fields appear once it is set. Keys a config carries that the schema does not declare (models with ``extra="allow"``) are rows of kind ``undeclared``: they are passed through, so they are shown.
|
protected |
Allowed values of a Literal (possibly Optional) annotation.
Definition at line 102 of file parameter_registry.py.
Referenced by _leaf().
|
protected |
Definition at line 112 of file parameter_registry.py.
Referenced by _leaf().
|
protected |
``Dict[str, Model]`` (possibly Optional) -> Model.
Definition at line 73 of file parameter_registry.py.
References _models_in().
Referenced by _walk(), and config_parameters().
|
protected |
|
protected |
Definition at line 136 of file parameter_registry.py.
References _choices(), _default(), _differs(), _plain(), and _type_name().
Referenced by _walk(), and config_parameters().
|
protected |
The BaseModel classes an annotation can hold (through Optional/Union).
Definition at line 64 of file parameter_registry.py.
References _models_in().
Referenced by _dict_value_model(), _models_in(), _walk(), and config_parameters().
|
protected |
Definition at line 122 of file parameter_registry.py.
Referenced by _differs(), _leaf(), and _walk().
|
protected |
Definition at line 85 of file parameter_registry.py.
References _type_name().
Referenced by _leaf(), and _type_name().
|
protected |
Definition at line 156 of file parameter_registry.py.
References _dict_value_model(), _leaf(), _models_in(), _plain(), and _walk().
Referenced by _walk(), and config_parameters().
| Dict[str, Any] engine.pipeline.parameter_registry.config_parameters | ( | BaseModel | config | ) |
All parameters of ``config`` (a PintleEngineConfig), grouped by section.
Definition at line 184 of file parameter_registry.py.
References _dict_value_model(), _leaf(), _models_in(), and _walk().
|
protected |
Definition at line 23 of file parameter_registry.py.
|
protected |
Definition at line 55 of file parameter_registry.py.
|
protected |
Definition at line 21 of file parameter_registry.py.
| engine.pipeline.parameter_registry.INTERNAL_SECTIONS = frozenset({"design_valid_for"}) |
Definition at line 61 of file parameter_registry.py.
| engine.pipeline.parameter_registry.LEGACY_SECTIONS = frozenset({"chamber", "nozzle"}) |
Definition at line 58 of file parameter_registry.py.
| list engine.pipeline.parameter_registry.SECTIONS |
Definition at line 26 of file parameter_registry.py.