|
12 | 12 | GridCalibration, |
13 | 13 | decompose_grid, |
14 | 14 | solve_calibration, |
15 | | - solve_calibration_with_origin, |
16 | 15 | ) |
17 | 16 |
|
18 | 17 |
|
@@ -125,27 +124,3 @@ def test_solve_calibration_returns_none_when_unfittable() -> None: |
125 | 124 | # Points so far apart no resolution keeps them on the 6x6 floor block. |
126 | 125 | points = [(0.0, 0.0), (1000.0, 0.0), (0.0, 1000.0)] |
127 | 126 | assert solve_calibration(layers, points, resolutions=[2.0]) is None |
128 | | - |
129 | | - |
130 | | -def test_solve_calibration_with_origin_fits_resolution_from_short_path() -> None: |
131 | | - """With a known origin only resolution is fit, so a tiny path suffices.""" |
132 | | - layers = _floor_block_layers() |
133 | | - true = GridCalibration(2.0, 3.0, 8.0, 1) |
134 | | - points = [true.pixel_to_world(px, py) for px, py in [(4, 7), (6, 5)]] # two points |
135 | | - cal = solve_calibration_with_origin(layers, points, (true.origin_x, true.origin_y), resolutions=[1.0, 2.0, 3.0]) |
136 | | - assert cal is not None |
137 | | - assert (cal.resolution, cal.origin_x, cal.origin_y, cal.y_sign) == (2.0, 3.0, 8.0, 1) |
138 | | - |
139 | | - |
140 | | -def test_solve_calibration_with_origin_returns_none_off_floor() -> None: |
141 | | - """A wrong origin that lands the path off floor is rejected, not forced.""" |
142 | | - layers = _floor_block_layers() |
143 | | - true = GridCalibration(2.0, 3.0, 8.0, 1) |
144 | | - points = [true.pixel_to_world(px, py) for px, py in [(4, 7), (6, 5)]] |
145 | | - # Origin shoved into the background corner: every point lands off floor. |
146 | | - assert solve_calibration_with_origin(layers, points, (0.0, 0.0), resolutions=[2.0]) is None |
147 | | - |
148 | | - |
149 | | -def test_solve_calibration_with_origin_returns_none_without_points() -> None: |
150 | | - layers = _floor_block_layers() |
151 | | - assert solve_calibration_with_origin(layers, [], (3.0, 8.0), resolutions=[2.0]) is None |
0 commit comments