STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
test_line_walls Namespace Reference

Functions

dict[str, object] _measured (float value, str unit)
dict[str, object] _drawing (bool segmented, **dict[str, object] line)
dict[str, Any] _walls (dict[str, object] doc)
None test_a_one_segment_line_gets_the_darcy_pipes_wall ()
None test_the_metal_is_the_counted_fittings_at_the_segment_bore ()
None test_a_drawn_wall_thickness_adds_the_tube_on_every_segment ()
None test_an_itemised_run_with_no_bore_anywhere_stays_bare ()
None test_the_le4_press_lines_get_their_walls ()

Variables

 HERE = Path(__file__).resolve().parent
str LE4 = HERE / "fixtures" / "le4_rocket_and_gse.json"
float BORE_MM = 10.922
float TUBE_MM = 727.08
float BEND_MM = 29.923670025442775

Detailed Description

Which lines get a wall: `Session._build_line_walls` against the drawing.

The wall model itself is held in ``test_wall.py``. This holds the build: a line
the drawing itemised into segments is solved as a ``segmented`` pipe whose bore
and length live in its segments, not in ``p`` (``_SUPERSEDED_BY_SEGMENTS``).
Reading only ``p["bore"]`` left every such line bare, which on the LE4 (3)
stand -- every line itemised -- made the default-on fitting heat a silent
no-op in Hotbench and Layer X alike.

Function Documentation

◆ _drawing()

◆ _measured()

dict[str, object] test_line_walls._measured ( float value,
str unit )
protected

◆ _walls()

dict[str, Any] test_line_walls._walls ( dict[str, object] doc)
protected

◆ test_a_drawn_wall_thickness_adds_the_tube_on_every_segment()

None test_line_walls.test_a_drawn_wall_thickness_adds_the_tube_on_every_segment ( )

Definition at line 115 of file test_line_walls.py.

References _drawing(), _measured(), and _walls().

◆ test_a_one_segment_line_gets_the_darcy_pipes_wall()

None test_line_walls.test_a_one_segment_line_gets_the_darcy_pipes_wall ( )
The same run, itemised or not, carries the same metal and the same area.

Definition at line 91 of file test_line_walls.py.

References _drawing(), and _walls().

◆ test_an_itemised_run_with_no_bore_anywhere_stays_bare()

None test_line_walls.test_an_itemised_run_with_no_bore_anywhere_stays_bare ( )

Definition at line 123 of file test_line_walls.py.

References _drawing(), and _walls().

◆ test_the_le4_press_lines_get_their_walls()

None test_line_walls.test_the_le4_press_lines_get_their_walls ( )
The shipped LE4 drawing: every pressurant run is itemised.

Definition at line 131 of file test_line_walls.py.

◆ test_the_metal_is_the_counted_fittings_at_the_segment_bore()

None test_line_walls.test_the_metal_is_the_counted_fittings_at_the_segment_bore ( )
Worked by hand: three 1/2 in.-class unions scaled to a 10.922 mm bore.

Definition at line 105 of file test_line_walls.py.

References _drawing(), and _walls().

Variable Documentation

◆ BEND_MM

float test_line_walls.BEND_MM = 29.923670025442775

Definition at line 33 of file test_line_walls.py.

◆ BORE_MM

float test_line_walls.BORE_MM = 10.922

Definition at line 31 of file test_line_walls.py.

◆ HERE

test_line_walls.HERE = Path(__file__).resolve().parent

Definition at line 24 of file test_line_walls.py.

◆ LE4

str test_line_walls.LE4 = HERE / "fixtures" / "le4_rocket_and_gse.json"

Definition at line 25 of file test_line_walls.py.

◆ TUBE_MM

float test_line_walls.TUBE_MM = 727.08

Definition at line 32 of file test_line_walls.py.