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

Functions

 drawings ()
 _fluids (payload)
 test_swapping_gn2_for_helium_is_the_helium_drawing (drawings)
 test_a_copv_drawn_as_a_tank_is_swapped_too ()
 test_a_swapped_drawing_burns_as_the_drawn_one (drawings)
 test_a_design_patch_lands_and_is_bounded ()
 test_the_nearest_drill_is_the_standard_one (no, inch)

Variables

 reason
 ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 CFG = os.path.join(ROOT, "configs", "ethalox_6800N.yaml")
 pytestmark

Detailed Description

The iteration tools: pressurant swap, injector what-ifs, drill choices.

Checked against things that exist independently of the code under test:
  * feed-twin ships the stand drawn twice, once with GN2 and once with helium. Swapping the GN2
    drawing's pressurant must reproduce the helium drawing's fluids exactly, and burn the same;
  * a what-if patch lands on the injector and the passage L/d it was given, and the router
    refuses one outside its limits;
  * number drills are ASME B94.11M's.

Function Documentation

◆ _fluids()

test_layerx_iterate._fluids ( payload)
protected

◆ drawings()

test_layerx_iterate.drawings ( )

Definition at line 35 of file test_layerx_iterate.py.

◆ test_a_copv_drawn_as_a_tank_is_swapped_too()

test_layerx_iterate.test_a_copv_drawn_as_a_tank_is_swapped_too ( )
A pid-designer drawing can draw its COPV with the tank symbol (copv is a tank wall
material there); feedtwin reads a TANK holding gas above its critical temperature as the
pressurant bottle. The swap looked only for KBOTTLE symbols, found none, and changed
nothing -- so "Use helium" on LE4 left it on nitrogen and the GN2-over-LOX check kept
blocking the run.

Definition at line 55 of file test_layerx_iterate.py.

References _fluids().

◆ test_a_design_patch_lands_and_is_bounded()

test_layerx_iterate.test_a_design_patch_lands_and_is_bounded ( )

Definition at line 94 of file test_layerx_iterate.py.

◆ test_a_swapped_drawing_burns_as_the_drawn_one()

test_layerx_iterate.test_a_swapped_drawing_burns_as_the_drawn_one ( drawings)

Definition at line 80 of file test_layerx_iterate.py.

◆ test_swapping_gn2_for_helium_is_the_helium_drawing()

test_layerx_iterate.test_swapping_gn2_for_helium_is_the_helium_drawing ( drawings)

Definition at line 43 of file test_layerx_iterate.py.

References _fluids().

◆ test_the_nearest_drill_is_the_standard_one()

test_layerx_iterate.test_the_nearest_drill_is_the_standard_one ( no,
inch )

Definition at line 112 of file test_layerx_iterate.py.

Variable Documentation

◆ CFG

test_layerx_iterate.CFG = os.path.join(ROOT, "configs", "ethalox_6800N.yaml")

Definition at line 29 of file test_layerx_iterate.py.

◆ pytestmark

test_layerx_iterate.pytestmark
Initial value:
1= pytest.mark.skipif(not (shipped_drawings_dir() / "copv_study_he.json").is_file(),
2 reason="feed-twin's shipped drawings are not next to this checkout")

Definition at line 30 of file test_layerx_iterate.py.

◆ reason

test_layerx_iterate.reason

Definition at line 20 of file test_layerx_iterate.py.

◆ ROOT

test_layerx_iterate.ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

Definition at line 28 of file test_layerx_iterate.py.