Repository navigation
Chart what the catalog knows from a survey, and what it estimates - #20
Merged
Merged
Conversation
coverage.py draws, for each property of AsteroidCatalog's latest release, the bodies a survey supplied it for (filled) and those the catalog estimates it for (hollow), on a log scale: every asteroid has an orbit, 9.5% a measured diameter and 524 a measured mass. catalog_profile.py counts it by hand from the release's parquet into catalog_profile.json, like the footer's belt, and check.py --fresh turns red when the manifest the weekly refresh reads names a newer release than the JSON counts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
data-2026-11-13release, the bodies a survey supplied it for (gold) and those the catalog estimates it for (hollow), on a log scale. Every asteroid has an orbit, 9.5% have a measured diameter, 46,159 a rotation period, and only 524 a measured mass, which is the headline. Desktop and phone versions.tools/catalog_profile.pycounts this by hand from the release's 218 MB parquet (pyarrow) into a 2 KBtools/catalog_profile.json, asbelt_profile.pydoes for the footer. CI never needs the parquet;coverage.pydraws from the JSON and writes the README sentence and alt text.check.py --fresh, run by the weekly links job, turns red when the release named in the catalog manifest (refreshed weekly) is newer than the one the JSON counts. A new release can't block the weekly refresh itself.Test plan
python tools/check.py --freshpassespython tools/test_tools.py(156 ok) andpython tools/test_loc.pypasscatalog_profile.jsonflags the stale chart, README and release🤖 Generated with Claude Code