Skip to content

Add ISS (NORAD 25544) to the default platform mapping - #266

Merged
djhoese merged 1 commit into
pytroll:mainfrom
CharlesXmf:cursor/add-iss-platform-18b6
Nov 30, 2026
Merged

djhoese merged 1 commit into
pytroll:mainfrom
CharlesXmf:cursor/add-iss-platform-18b6

Conversation

@CharlesXmf

Copy link
Copy Markdown
Contributor

Fixes #116

Orbital("ISS") failed because ISS was missing from the default platform mapping in pyorbital/etc/platforms.txt. This adds ISS 25544, as suggested by @djhoese, matching the Celestrak catalogue number for the station.

A unit test asserts SATELLITES["ISS"] == "25544".

Verified with python3 -m pytest pyorbital/tests -q --tb=short — 345 passed.

Orbital("ISS") failed because ISS was missing from platforms.txt.
Celestrak lists the station under catalogue number 25544.

Co-authored-by: Charles <CharlesXmf@users.noreply.github.com>
@djhoese

djhoese commented Nov 30, 2026

Copy link
Copy Markdown
Member

I'm wondering if we need the test on this? Do we have any other simple platform lookup tests? Pytest's parametrize could be used to look up multiple platforms with a single test function. @pnuu @mraspaud thoughts?

@codecov

codecov Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #266   +/-   ##
=======================================
  Coverage   93.03%   93.04%           
=======================================
  Files          22       22           
  Lines        4911     4914    +3     
=======================================
+ Hits         4569     4572    +3     
  Misses        342      342           
Flag Coverage Δ
unittests 93.04% <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 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think the test is fine as a simple "the platform-name-to-ID mapping works". Perhaps there could be couple of others with parametrize, but I'm not sure if that's needed. LGTM as-is.

@djhoese djhoese added the bug label Nov 30, 2026
@djhoese
djhoese merged commit 9677306 into pytroll:main Nov 30, 2026
13 of 16 checks passed
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.

ISS not found in get_observer_look

4 participants