Skip to content

Provide calibrated units and pixel uncertainty metadata to Data Tool - #74

Draft
paulnord wants to merge 2 commits into
OpenSourcePhysics:SwingJSfrom
paulnord:improve-fit-physics-metadata
Draft

Provide calibrated units and pixel uncertainty metadata to Data Tool#74
paulnord wants to merge 2 commits into
OpenSourcePhysics:SwingJSfrom
paulnord:improve-fit-physics-metadata

Conversation

@paulnord

@paulnord paulnord commented Sep 6, 2026

Copy link
Copy Markdown

Connect Tracker's existing units, pixel calibration, and position/time column identities to the Data Tool fit-report features in OpenSourcePhysics/osp#9. Requires that OSP API; this is the small companion change, with no AutoTracker implementation changes.

Data Tool receives live metadata through FitMetadataProvider. Source dataset IDs and column IDs preserve provenance through local column names. Tracker table exports retain metadata units even when displayed units are hidden.

Pixel uncertainty is offered only for directly calibrated PointMass x/y with known length units and a constant conversion. The adapter uses the relevant image-to-world transform row norm, including rotation and anisotropic scale. Derived quantities and varying calibration are excluded.

A position-component callback identifies position versus time so OSP can include line-fit velocity and quadratic-fit velocity at t=0 and acceleration in copied reports. It does not label position-versus-position or derivative columns as position data. No tracking, optimizer, numerical derivative, or project-file behavior changes.

Validation: builds against the updated OSP classes on macOS; 17 real Tracker calibration and column-identity checks pass. The changed metadata adapter transpiles with SwingJS; the other three source files passed transpilation earlier. OSP's desktop and Chromium/Firefox/WebKit suites exercise the consumer API, layout, and copied motion results. The Tracker integration fixture was not run inside a browser or on native Windows/Linux.

Integration notes and the standalone test are in test/FIT_METADATA.md.

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