Skip to content

Clean up type parameters in feature structs#159

Merged
RomeoV merged 1 commit into
masterfrom
claude/fix-feature-docs-9Fj40
Feb 19, 2026
Merged

Clean up type parameters in feature structs#159
RomeoV merged 1 commit into
masterfrom
claude/fix-feature-docs-9Fj40

Conversation

@RomeoV

@RomeoV RomeoV commented Feb 19, 2026

Copy link
Copy Markdown
Owner

Summary

This PR removes unused type parameters from the PointFeatures and LineFeatures struct definitions and improves documentation for the PointFeatures struct.

Key Changes

  • PointFeatures: Removed unused type parameters S, M, and M′ from the struct signature (now has 8 parameters instead of 11)
  • LineFeatures: Corrected type parameter ordering from {T, T′′, S, WL, OL, CC, M, M′} to {T, T′, T′′, WL, OL, CC, M, M′} for consistency
  • Documentation: Added comprehensive field documentation to PointFeatures docstring explaining:
    • runway_corners: World space corner positions
    • observed_corners: Image observation projections
    • camconfig: Camera configuration
    • cov: Observation error covariance matrix
    • Linv: Inverted lower triangular covariance component

Implementation Details

These changes improve code clarity by removing unused type parameters that were likely artifacts from earlier refactoring. The corrected type parameter ordering in LineFeatures ensures consistency with the actual struct definition. Enhanced documentation makes the purpose and structure of point feature observations clearer for users of the API.

https://claude.ai/code/session_011bUdUe556jqRup9D3M58zZ

- PointFeatures: Remove non-existent `S` param, add `# Fields` section
- LineFeatures: Add missing `T′` param, remove non-existent `S` param

Both docstrings now match their actual struct definitions.

https://claude.ai/code/session_011bUdUe556jqRup9D3M58zZ
@RomeoV
RomeoV merged commit 4bb0f4e into master Feb 19, 2026
13 checks passed
@RomeoV
RomeoV deleted the claude/fix-feature-docs-9Fj40 branch February 19, 2026 05:09
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.

2 participants