|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Public Member Functions | |
| test_geometry_keys_are_forwarded_to_constants_dict (self) | |
| test_helpers_read_through_a_plain_dict (self) | |
Static Public Attributes | |
| tuple | KEYS |
constants_dict is curated -- a key absent from it never reaches the worker objective. This is how the first wiring attempt failed silently: theta was honoured by _layer1_apply_chamber_geometry_to_config (which reads the config) but defaulted to 45 deg inside the objective, so the optimiser scored a different chamber than it built, and layer1_min_Lcyl_over_D was never enforced at all -- Layer 1 returned a design at L_cyl/D = 0.337 against a configured floor of 0.55 and called it valid.
Definition at line 123 of file test_layer1_geometry_wiring.py.
| test_layer1_geometry_wiring.TestConstantsDictPlumbing.test_geometry_keys_are_forwarded_to_constants_dict | ( | self | ) |
Definition at line 137 of file test_layer1_geometry_wiring.py.
References KEYS.
| test_layer1_geometry_wiring.TestConstantsDictPlumbing.test_helpers_read_through_a_plain_dict | ( | self | ) |
constants_dict is a plain dict; the config object is a pydantic model. Both must work -- a bare .get() broke the model path, a bare getattr breaks the dict.
Definition at line 149 of file test_layer1_geometry_wiring.py.
|
static |
Definition at line 133 of file test_layer1_geometry_wiring.py.
Referenced by test_geometry_keys_are_forwarded_to_constants_dict().