MCPcopy Create free account
hub / github.com/TheMariday/marimapper / test_capture_sequence

Function test_capture_sequence

test/test_capture_sequence.py:10–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9
10def test_capture_sequence():
11 output_dir_full = get_test_dir("scan")
12
13 os.makedirs(output_dir_full, exist_ok=True)
14
15 for view_index in range(9):
16
17 cam = Camera(
18 get_test_dir(
19 f"MariMapper-Test-Data/9_point_box/cam_{view_index}/capture_%04d.png"
20 )
21 )
22
23 leds = []
24
25 for led_id in range(24):
26
27 point = find_led(cam, display=False)
28
29 if point:
30 leds.append(LED2D(led_id, 0, point))
31
32 filepath = output_dir_full / f"led_map_2d_{view_index:04}.csv"
33
34 write_2d_leds_to_file(leds, filepath)
35
36
37def test_capture_sequence_correctness():

Callers

nothing calls this directly

Calls 5

get_test_dirFunction · 0.90
CameraClass · 0.90
find_ledFunction · 0.90
LED2DClass · 0.90
write_2d_leds_to_fileFunction · 0.90

Tested by

no test coverage detected