STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
test_layer1_geometry_wiring.TestConstantsDictPlumbing Class Reference

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

Detailed Description

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.

Member Function Documentation

◆ test_geometry_keys_are_forwarded_to_constants_dict()

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_helpers_read_through_a_plain_dict()

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.

Member Data Documentation

◆ KEYS

tuple test_layer1_geometry_wiring.TestConstantsDictPlumbing.KEYS
static
Initial value:
= ("layer1_contraction_half_angle_deg",
"layer1_min_Lcyl_over_D",
"layer1_max_element_pitch_m")

Definition at line 133 of file test_layer1_geometry_wiring.py.

Referenced by test_geometry_keys_are_forwarded_to_constants_dict().


The documentation for this class was generated from the following file: