Skip to content

Fix parsing epochs in TLE database - #263

Merged
pnuu merged 1 commit into
pytroll:mainfrom
pnuu:bugfix-fromisoformat
Nov 9, 2026
Merged

pnuu merged 1 commit into
pytroll:mainfrom
pnuu:bugfix-fromisoformat

Conversation

@pnuu

@pnuu pnuu commented Nov 9, 2026

Copy link
Copy Markdown
Member

The epoch in TLE database handling used .strptime() with a fixed date string that had hardcoded .%f for fractional seconds. This fails when the epoch is exactly full seconds without any decimals. This PR uses the proper way to parse; the builtin .fromisoformat().

  • Closes #xxxx
  • Tests added
  • Fully documented

@pnuu pnuu self-assigned this Nov 9, 2026
@pnuu pnuu added the bug label Nov 9, 2026
@codecov

codecov Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.03%. Comparing base (8efbc57) to head (9c63846).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #263      +/-   ##
==========================================
- Coverage   93.03%   93.03%   -0.01%     
==========================================
  Files          22       22              
  Lines        4912     4911       -1     
==========================================
- Hits         4570     4569       -1     
  Misses        342      342              
Flag Coverage Δ
unittests 93.03% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@pnuu
pnuu merged commit 6bcdc4c into pytroll:main Nov 9, 2026
17 of 27 checks passed
@pnuu
pnuu deleted the bugfix-fromisoformat branch November 9, 2026 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants