|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Classes | |
| class | Component |
Functions | |
| str | _family (str entity) |
| str | _unit (str field) |
| Component | classify (str name) |
Variables | |
| dict | _DISCRETE_FIELDS |
| dict | _SECONDARY_FIELDS |
| dict | _UNIT_BY_FIELD |
| _HASH_RE = re.compile(r"^\d{6,}$") | |
Classify exported component names into family/field/unit/kind. A flattened Elodin export names each file `<Entity>.<field>` where Entity is like `PT_Cal.Ox_Upstream`, `TC1.CH2`, `ACT4.CH5`, `CONTROLLER.diagnostics`, `BOARD.HB_52`. The last dotted segment is the field (`pressure_psi`, `raw_adc`, `to_state`, ...). A handful of components are genuinely unnamed and arrive as a bare numeric hash — those are grouped as "Other".
|
protected |
Coarse family for grouping in the UI, derived from the entity prefix.
Definition at line 88 of file naming.py.
Referenced by classify().
|
protected |
Definition at line 103 of file naming.py.
Referenced by classify().
| Component backend.naming.classify | ( | str | name | ) |
|
protected |
|
protected |
|
protected |