Skip to content

Omit invalid values from GPX output - #158

Open
Bolt4243 wants to merge 1 commit into
dtcooper:masterfrom
Bolt4243:fix/omit-invalid-gpx-values
Open

Bolt4243 wants to merge 1 commit into
dtcooper:masterfrom
Bolt4243:fix/omit-invalid-gpx-values

Conversation

@Bolt4243

Copy link
Copy Markdown

FIT invalid-value sentinels are decoded as None. GPX generation currently writes those values as coordinates and elevation, producing values that do not satisfy the GPX numeric fields.

Skip points without both coordinates and omit elevation when its decoded value is invalid. The regression test covers both paths using the actual enhanced_altitude field.

Tests: full unittest suite, workflow flake8 checks, and coverage run with 87% total coverage.

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