()
| 8 | |
| 9 | |
| 10 | def 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 | |
| 37 | def test_capture_sequence_correctness(): |
nothing calls this directly
no test coverage detected