Skip to content

Commit

Permalink
Fix the vertices
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffLIrion committed Aug 21, 2021
1 parent 14a18d3 commit 019cb52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ def _test_optimize_fixed_vertices(self, fixed_indices):
chi2_orig = self.g.calc_chi2()

poses_before = [self.g._vertices[i].pose.to_array() for i in fixed_indices] # pylint: disable=protected-access
for i in fixed_indices:
self.g._vertices[i].fixed = True # pylint: disable=protected-access

self.g.optimize(fix_first_pose=False)
self.assertLess(self.g.calc_chi2(), chi2_orig)

Expand Down

0 comments on commit 019cb52

Please sign in to comment.