Skip to content

fix: BundleAdjust fixed landmarks and pgraph 1.0 Vertex - #129

Merged
petercorke merged 3 commits into
mainfrom
fix/bundleadjust-pgraph-compat
Oct 13, 2026
Merged

petercorke merged 3 commits into
mainfrom
fix/bundleadjust-pgraph-compat

Conversation

@petercorke

Copy link
Copy Markdown
Owner

What

  • add_landmark(P, fixed=True) raised NameError: name 'c' is not defined (appended an undefined c instead of the landmark), so a fixed landmark could never be created.
  • ViewPoint / Landmark subclassed pgraph.UVertex, deprecated in pgraph 1.0 (DeprecationWarning at import). They now subclass pgraph.Vertex when present and fall back to UVertex for pgraph 0.6.x.
  • Regression tests for both.

Testing

tests/test_bundleadjust.py and the full suite (947 passed, 96 skipped) against pgraph 0.6.4 (installed) and pgraph 1.0.0 (chore/release-1.0.0 worktree via PYTHONPATH). The two new tests fail on main.

Follow-ups, separate PRs: test coverage (stacked on this one) and a CI pgraph matrix.

🤖 Generated with Claude Code

add_landmark(fixed=True) raised NameError (appended undefined 'c' rather
than the landmark) so a fixed landmark could never be created.

ViewPoint and Landmark subclassed pgraph.UVertex, deprecated in pgraph
1.0, giving a DeprecationWarning at import.  Subclass pgraph.Vertex when
it exists and fall back to UVertex for pgraph 0.6.x.

Adds regression tests for both.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@codacy-production

codacy-production Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 4 complexity · 0 duplication

Metric Results
Complexity 4
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

petercorke and others added 2 commits October 13, 2026 12:18
Codacy flags subprocess.run as a critical security finding.  Assert the
base class directly instead; pgraph 0.6 has no Vertex so the test skips
there.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@petercorke
petercorke merged commit 1467091 into main Oct 13, 2026
37 checks passed
@petercorke
petercorke deleted the fix/bundleadjust-pgraph-compat branch October 13, 2026 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant