Skip to content

Raise when source_software_version is set without source_software - #63

Merged
rly merged 1 commit into
rly:mainfrom
h-mayorquin:fix_software_version
Jul 18, 2026
Merged

Raise when source_software_version is set without source_software#63
rly merged 1 commit into
rly:mainfrom
h-mayorquin:fix_software_version

Conversation

@h-mayorquin

Copy link
Copy Markdown
Contributor

PoseEstimation stores source_software_version as the version attribute on the source_software dataset. When the version was passed without the software name, there was no dataset for the attribute to attach to, so the value was accepted at construction and then silently dropped on write, with no warning and no error. Nothing about the storage layout changes here and no capability is removed: version plus software name has always round-tripped correctly and still does. This just turns the impossible case into a ValueError at construction time instead of a quiet data loss at write time.

I scoped this to PoseEstimation because that is the only affected type on main. MultiCameraPoseEstimation (currently in #57) has the same attribute-on-dataset layout and the same flaw; I would rather let that branch pick up an equivalent guard once it merges than widen this PR across branches.

@rly rly left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rly

rly commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Thanks @h-mayorquin !

@rly
rly merged commit f666dd5 into rly:main Jul 18, 2026
25 checks passed
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