Skip to content

Commit aebb905

Browse files
authored
set pmin and pmax in unit test
1 parent db801f1 commit aebb905

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/gtsam/tests/test_ShonanAveraging.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ def test_PriorWeights(self):
148148

149149
def test_constructorBetweenFactorPose2s(self) -> None:
150150
"""Check if ShonanAveraging2 constructor works when not initialized from g2o file."""
151+
num_images = 11
151152
# map (i1,i2) pair to theta in degrees that parameterizes Rot2 object i2Ri1
152153
i2Ri1_dict = {
153154
(1, 2): -43.86342,
@@ -192,9 +193,9 @@ def test_constructorBetweenFactorPose2s(self) -> None:
192193

193194
obj = ShonanAveraging2(between_factors, shonan_params)
194195
initial = obj.initializeRandomly()
195-
result_values, _ = obj.run(initial, p_min, self._p_max)
196+
result_values, _ = obj.run(initial, min_p=2, max_p=10)
196197

197-
for i in range(11):
198+
for i in range(num_images):
198199
wRi = result_values.atRot2(i)
199200

200201

0 commit comments

Comments
 (0)