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

Functions

Any _on_the_line (float|None at)
str|None _reads (Any built)
None test_a_probe_on_a_line_reads_the_end_it_is_clipped_nearer (float at, str end)
None test_a_probe_on_a_line_with_no_position_reads_it ()
None test_a_probe_on_a_vehicle_line_stays_with_the_vehicle ()
None test_a_probe_on_a_symbol_reads_as_before ()

Variables

str DRAWING = Path(__file__).resolve().parent / "fixtures" / "le4_rocket_and_gse.json"
str LINE = "node_38-node_36"
str PROBE = "node_30"

Detailed Description

A probe clipped to a line reads the line.

pid-designer clips an RTD, a TC or a load cell to a tank, a valve *or a line*
(its ``attach.ts``): on a line ``attachedTo`` is the line's id and
``attachedAt`` the fraction of its drawn length from the source end. The twin
resolved a clip only against symbols, so a probe on a line read nothing and was
reported "not clipped to anything" -- and with the cart cut (``ignore_gse``)
it was dropped from the vehicle without a word.

Function Documentation

◆ _on_the_line()

◆ _reads()

◆ test_a_probe_on_a_line_reads_the_end_it_is_clipped_nearer()

None test_probes_on_lines.test_a_probe_on_a_line_reads_the_end_it_is_clipped_nearer ( float at,
str end )

Definition at line 45 of file test_probes_on_lines.py.

References _on_the_line(), and _reads().

◆ test_a_probe_on_a_line_with_no_position_reads_it()

None test_probes_on_lines.test_a_probe_on_a_line_with_no_position_reads_it ( )
Saved before ``attachedAt`` existed: drawn at the line's middle.

Definition at line 54 of file test_probes_on_lines.py.

References _on_the_line(), and _reads().

◆ test_a_probe_on_a_symbol_reads_as_before()

None test_probes_on_lines.test_a_probe_on_a_symbol_reads_as_before ( )

Definition at line 73 of file test_probes_on_lines.py.

References _reads().

◆ test_a_probe_on_a_vehicle_line_stays_with_the_vehicle()

None test_probes_on_lines.test_a_probe_on_a_vehicle_line_stays_with_the_vehicle ( )

Definition at line 63 of file test_probes_on_lines.py.

References _on_the_line(), and _reads().

Variable Documentation

◆ DRAWING

str test_probes_on_lines.DRAWING = Path(__file__).resolve().parent / "fixtures" / "le4_rocket_and_gse.json"

Definition at line 24 of file test_probes_on_lines.py.

◆ LINE

str test_probes_on_lines.LINE = "node_38-node_36"

Definition at line 25 of file test_probes_on_lines.py.

◆ PROBE

str test_probes_on_lines.PROBE = "node_30"

Definition at line 26 of file test_probes_on_lines.py.