From 49d2ed9ce933507355abd4df16075bd356283c9c Mon Sep 17 00:00:00 2001
From: loggger101
Date: Tue, 1 Dec 2026 17:07:17 -0500
Subject: [PATCH 1/2] Keep git's background maintenance out of the throwaway
clones, and let catalog_profile.py write the coverage sentence
The weekly refresh of 30 November failed in refresh_activity.py with
"Directory not empty: objects/info/commit-graphs". A partial clone fetches
what it lacks, and after that fetch git starts `maintenance run --auto
--detach`, which was still writing into the clone as TemporaryDirectory
deleted it. loc.py and refresh_activity.py now run git with
maintenance.auto=false and gc.auto=0, which pass down to that fetch; a
traced clone starts the maintenance without them and not with them.
Nothing wrote the README's sentence above the coverage chart or its alt
text: check.py says to rerun catalog_profile.py, and tools/README.md said
coverage.py writes them, but only check.py called coverage.update_readme.
catalog_profile.py now writes them with the JSON, all or nothing.
Co-Authored-By: Claude Opus 5.5
---
tools/README.md | 4 ++--
tools/catalog_profile.py | 21 ++++++++++++++-------
tools/loc.py | 12 +++++++++---
tools/refresh_activity.py | 6 +++---
4 files changed, 28 insertions(+), 15 deletions(-)
diff --git a/tools/README.md b/tools/README.md
index 79628b5..071f130 100644
--- a/tools/README.md
+++ b/tools/README.md
@@ -214,8 +214,8 @@ have a measured mass, the chart's headline. Counting it needs the whole release,
done by hand, like the footer's belt: download the latest release's
`asteroid_catalog.parquet` and run `catalog_profile.py` on it with the release's tag, which
writes `catalog_profile.json` (each property's counts, and which surveys supplied it;
-`PROPERTIES` there says which columns count), then `coverage.py`, which also writes the
-README's sentence and alt text. `check.py --fresh` turns red when the manifest the weekly
+`PROPERTIES` there says which columns count) and the README's sentence and alt text, then
+`coverage.py`, which redraws the chart. `check.py --fresh` turns red when the manifest the weekly
refresh reads names a newer release than the JSON counts.
`value.py` draws what spacevalue's price tables say a kilogram is worth at each place they
diff --git a/tools/catalog_profile.py b/tools/catalog_profile.py
index fdbf2a8..77be3b0 100644
--- a/tools/catalog_profile.py
+++ b/tools/catalog_profile.py
@@ -8,11 +8,12 @@
Run by hand with each new catalog release, like belt_profile.py: it needs the release's
asteroid_catalog.parquet on disk and pyarrow, which CI hasn't got, so coverage.py reads the
-JSON this writes instead. `check.py --fresh` says when the catalog has a newer release than
-this JSON counts.
+JSON this writes instead. It also writes the README's sentence above the chart and its alt
+text (coverage.update_readme); run coverage.py afterwards to redraw the chart. `check.py
+--fresh` says when the catalog has a newer release than this JSON counts.
- gh release download data-2026-11-13 -R loggger101/AsteroidCatalog -p asteroid_catalog.parquet -D
- python tools/catalog_profile.py /asteroid_catalog.parquet data-2026-11-13
+ gh release download data-2026-12-01 -R loggger101/AsteroidCatalog -p asteroid_catalog.parquet -D
+ python tools/catalog_profile.py /asteroid_catalog.parquet data-2026-12-01
"""
import json
import sys
@@ -21,7 +22,10 @@
import pyarrow.compute as pc
import pyarrow.parquet as pq
-OUT = Path(__file__).parent / "catalog_profile.json"
+from safe_write import all_or_nothing, write
+
+ROOT = Path(__file__).resolve().parent.parent
+OUT = ROOT / "tools" / "catalog_profile.json"
# key: (the column that is set where a survey supplied the value, or a boolean column true
# there; the column naming the survey that supplied it, if the catalog keeps one; the column
@@ -73,8 +77,11 @@ def main():
props = profile(table)
if any(p["measured"] > table.num_rows for p in props.values()) or props["orbit"]["measured"] < 0.99 * table.num_rows:
sys.exit(f"the counts don't look right: {props}")
- OUT.write_text(json.dumps({"release": release, "rows": table.num_rows, "properties": props}, indent=1) + "\n",
- encoding="utf-8", newline="\n")
+ readme_path = ROOT / "README.md"
+ with all_or_nothing(OUT, readme_path):
+ write(OUT, json.dumps({"release": release, "rows": table.num_rows, "properties": props}, indent=1) + "\n")
+ import coverage # reads the counts just written
+ write(readme_path, coverage.update_readme(readme_path.read_text(encoding="utf-8")))
print(f"{OUT.name}: {release}, {table.num_rows:,} rows; "
+ ", ".join(f"{k} {p['measured']:,}" for k, p in props.items()))
diff --git a/tools/loc.py b/tools/loc.py
index cb99e66..fec134c 100644
--- a/tools/loc.py
+++ b/tools/loc.py
@@ -53,6 +53,12 @@
ROOT = Path(__file__).resolve().parent.parent
COUNTS = ROOT / "tools" / "counts.json"
+# git for the throwaway clones here and in refresh_activity.py. A partial clone fetches what
+# it lacks, and after that fetch git starts `maintenance run --auto --detach`, which can
+# still be writing commit-graphs into the clone as the temporary folder is deleted
+# ("Directory not empty"; the weekly run of 30 November 2026). The settings pass down to
+# that fetch.
+GIT = ("git", "-c", "maintenance.auto=false", "-c", "gc.auto=0")
# repo: (link in its README row, private, what it generates, archives or hosts without
# marking it in .gitattributes)
@@ -399,10 +405,10 @@ def repo_loc(name, excludes):
with tempfile.TemporaryDirectory() as tmp:
url = f"https://github.com/loggger101/{name}.git"
run = lambda *a, **kw: subprocess.run(a, cwd=tmp, check=True, capture_output=True, **kw)
- run("git", "clone", "--quiet", "--depth", "1", "--filter=blob:none", "--sparse", url, "r")
+ run(*GIT, "clone", "--quiet", "--depth", "1", "--filter=blob:none", "--sparse", url, "r")
repo = Path(tmp, "r")
# No -l: asking a partial clone for blob sizes downloads every blob, one at a time.
- listing = run("git", "-C", "r", "ls-tree", "-r", "-z", "HEAD").stdout.decode("utf-8").split("\0")
+ listing = run(*GIT, "-C", "r", "ls-tree", "-r", "-z", "HEAD").stdout.decode("utf-8").split("\0")
paths = []
for entry in filter(None, listing):
meta, path = entry.split("\t", 1)
@@ -413,7 +419,7 @@ def repo_loc(name, excludes):
escape = lambda p: "/" + re.sub(r"([\\*?\[!#])", r"\\\1", p)
wanted = [p for p in paths if PurePosixPath(p).suffix.lower() not in BINARY and not excluded(p, EXCLUDE + excludes)]
patterns = ["/.gitattributes", *map(escape, wanted)]
- run("git", "-C", "r", "sparse-checkout", "set", "--no-cone", "--stdin", input="\n".join(patterns).encode())
+ run(*GIT, "-C", "r", "sparse-checkout", "set", "--no-cone", "--stdin", input="\n".join(patterns).encode())
rules = gitattributes(repo)
head = lambda p: (repo / p).read_bytes()[:128]
not_own = TOTAL_EXCLUDE["*"] + TOTAL_EXCLUDE.get(name, [])
diff --git a/tools/refresh_activity.py b/tools/refresh_activity.py
index 4dc80ad..6bf2201 100644
--- a/tools/refresh_activity.py
+++ b/tools/refresh_activity.py
@@ -26,7 +26,7 @@
import tempfile
from pathlib import Path
-from loc import REPOS
+from loc import GIT, REPOS
from safe_write import all_or_nothing, write
ROOT = Path(__file__).resolve().parent.parent
@@ -45,10 +45,10 @@ def monday(day):
def repo_activity(name, private):
with tempfile.TemporaryDirectory() as tmp:
url = f"https://github.com/loggger101/{name}.git"
- subprocess.run(["git", "clone", "--quiet", "--bare", "--filter=tree:0", url, "r"],
+ subprocess.run([*GIT, "clone", "--quiet", "--bare", "--filter=tree:0", url, "r"],
cwd=tmp, check=True, capture_output=True)
# --author matches the name or the email.
- log = lambda *a: subprocess.run(["git", "-C", "r", "log", f"--author={AUTHOR}", "--date=short", *a, "HEAD"],
+ log = lambda *a: subprocess.run([*GIT, "-C", "r", "log", f"--author={AUTHOR}", "--date=short", *a, "HEAD"],
cwd=tmp, check=True, capture_output=True, text=True, encoding="utf-8").stdout
dates = log("--format=%ad").split()
recent = [] if private else [line.split("\t", 2) for line in log("--no-merges", f"-n{RECENT}", "--format=%H%x09%ad%x09%s").splitlines()]
From 06fd67821235ed919245652c192be7401e84fa7a Mon Sep 17 00:00:00 2001
From: loggger101
Date: Tue, 1 Dec 2026 17:07:17 -0500
Subject: [PATCH 2/2] Refresh the profile, with the private repos, this week's
flybys and the catalog's 1 December release
AsteroidCatalog's data-2026-12-01 release holds 1,589,984 asteroids and
adds AKARI AcuA as a fifth survey, so the surveys chart gives AKARI the
label the catalog's README does, the AsteroidCatalog row names it, and
the coverage chart counts the new release.
Co-Authored-By: Claude Opus 5.5
---
README.md | 48 ++--
docs/activity-compact.svg | 278 ++++++++++++------------
docs/activity.svg | 278 ++++++++++++------------
docs/badges/release-AsteroidCatalog.svg | 2 +-
docs/coverage-compact.svg | 44 ++--
docs/coverage.svg | 62 +++---
docs/flybys-compact.svg | 85 +++++---
docs/flybys.svg | 87 +++++---
docs/languages-compact.svg | 8 +-
docs/languages.svg | 18 +-
docs/pipeline-compact.svg | 2 +-
docs/pipeline.svg | 2 +-
docs/sources-compact.svg | 110 +++++-----
docs/sources.svg | 240 ++++++++++----------
docs/sparks/AsteroidCatalog.svg | 2 +-
docs/sparks/asteroid-belt-gradient.svg | 6 +-
docs/sparks/spacevalue.svg | 2 +-
docs/sparks/website.svg | 10 +-
docs/stats/catalog-compact.svg | 4 +-
docs/stats/catalog.svg | 4 +-
docs/stats/sources-compact.svg | 8 +-
docs/stats/sources.svg | 16 +-
docs/surveys-compact.svg | 46 ++--
docs/surveys.svg | 55 +++--
tools/catalog_profile.json | 33 +--
tools/counts.json | 240 ++++++++++++--------
tools/surveys.py | 1 +
27 files changed, 904 insertions(+), 787 deletions(-)
diff --git a/README.md b/README.md
index 6a82cad..9f0fb01 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,7 @@
-I'm an Astronomy & Astrophysics student at Florida Tech, double majoring in Planetary Science. Most of the work here is about asteroids. I built a catalog of about 1.58 million of them and a pipeline that estimates whether mining one would make money, then used the catalog for a [paper](https://github.com/loggger101/asteroid-belt-gradient) on whether the belt's S/C composition gradient shows where its asteroids formed. Corrected for two biases, the switch from S-types to C-types turns out too gradual for a snow line they formed behind, which points to carbonaceous asteroids carried in from beyond Jupiter. I've also mapped landforms across Mars from orbital imagery, trained two image classifiers and written an orbit simulator that follows the Sentinel-1 radar satellites against ESA's precise orbits.
+I'm an Astronomy & Astrophysics student at Florida Tech, double majoring in Planetary Science. Most of the work here is about asteroids. I built a catalog of about 1.59 million of them and a pipeline that estimates whether mining one would make money, then used the catalog for a [paper](https://github.com/loggger101/asteroid-belt-gradient) on whether the belt's S/C composition gradient shows where its asteroids formed. Corrected for two biases, the switch from S-types to C-types turns out too gradual for a snow line they formed behind, which points to carbonaceous asteroids carried in from beyond Jupiter. I've also mapped landforms across Mars from orbital imagery, trained two image classifiers and written an orbit simulator that follows the Sentinel-1 radar satellites against ESA's precise orbits.
Outside of school I'm CTO of [AspireCURES](https://www.aspirecures.com), a company that matches patients with rare brain diseases to research, and VP of Database Management at [Sisters Hope Foundation](https://www.sistershopefoundation.org), a rare-disease nonprofit. I run the websites and patient databases for both.
@@ -18,9 +18,9 @@ Outside of school I'm CTO of [AspireCURES](https://www.aspirecures.com), a compa
-
+
-
+
@@ -47,11 +47,11 @@ The first five repos work together to estimate whether an uncrewed asteroid mini
The main pipeline. It installs a pinned catalog release from AsteroidCatalog and pinned prices from spacevalue, costs the transport with spacecost, then runs the rocket equation and a cost cascade to rank targets by profit. That ranking stage, Stage 4, runs in Rust by default where it's installed, answering bit for bit as the Python does but faster; the Python stays as the fallback.
-
AsteroidCatalog Stage 1: the catalog 6,573 lines of code 15,883 total lines
-
The pipeline's catalog stage, moved into its own repo. About 1.58 million asteroids from JPL SBDB, SsODNet, NEOWISE and MP3C, cross-matched, with the source of every value recorded and a cited composition estimate for each taxonomy class. Releases are frozen so other projects can pin one.
+
AsteroidCatalog Stage 1: the catalog 6,886 lines of code 16,573 total lines
+
The pipeline's catalog stage, moved into its own repo. About 1.59 million asteroids from JPL SBDB, SsODNet, NEOWISE, AKARI and MP3C, cross-matched, with the source of every value recorded and a cited composition estimate for each taxonomy class. Releases are frozen so other projects can pin one.
-
spacevalue Stage 2: mineral prices 4,326 lines of code 10,131 total lines
+
spacevalue Stage 2: mineral prices 4,496 lines of code 10,448 total lines
The pipeline's pricing stage as an installable Python package: what a kilogram of each mineral and element is worth at eight places you could deliver it, from Earth's surface to Mars. Away from Earth a material is worth the better of being used there, which saves launching it, or being flown home and sold. Prices come from recorded quotes, so a build can be repeated, and each dated release carries all eight tables as CSVs. Its cargo knapsack, which fills a mission's hold by dollars per kilogram, also has a Rust port, tested against the Python here, which economicspace's Rust links.
@@ -59,7 +59,7 @@ The first five repos work together to estimate whether an uncrewed asteroid mini
The pipeline's mission-cost stage as an installable Python package: reference tables for mission cost and mass, with a citation on every row.
-
General_Research the sources 2,595 lines of code 92,587 total lines
+
General_Research the sources 2,595 lines of code 95,089 total lines
The sources behind the four repos above, ranked into tiers by authority, with the numbers I use pulled into a CSV for each source.
@@ -68,16 +68,16 @@ The first five repos work together to estimate whether an uncrewed asteroid mini
-**What the catalog is built from.** The bodies each survey supplies to AsteroidCatalog's latest release, data-2026-11-13, out of its 1,580,325 asteroids. JPL SBDB knows every one of them; NEOWISE, the fewest, 143,015. Only 149,718 (9.5%) have a measured diameter; the rest are estimated from brightness and an assumed albedo.
+**What the catalog is built from.** The bodies each survey supplies to AsteroidCatalog's latest release, data-2026-12-01, out of its 1,589,984 asteroids. JPL SBDB knows every one of them; AKARI, the fewest, 5,119. Only 149,717 (9.4%) have a measured diameter; the rest are estimated from brightness and an assumed albedo.
-
+
-**What the catalog knows.** How many of the 1,580,325 asteroids in AsteroidCatalog's data-2026-11-13 have each property from a survey (filled), and how many more the catalog estimates it for (hollow), on a log scale. Every one has an orbit; 149,718 (9.5%) a measured diameter, 46,159 a rotation period and 524 a measured mass, so nearly every mass in it is an estimate from size and taxonomy.
+**What the catalog knows.** How many of the 1,589,984 asteroids in AsteroidCatalog's data-2026-12-01 have each property from a survey (filled), and how many more the catalog estimates it for (hollow), on a log scale. Every one has an orbit; 149,717 (9.4%) a measured diameter, 46,159 a rotation period and 524 a measured mass, so nearly every mass in it is an estimate from size and taxonomy.
-
+
**What a kilogram is worth.** spacevalue's price for a kilogram of water, iron and platinum at each place you could deliver it, from its latest tables, on a log scale. A filled mark is sold or used where it is, which off Earth saves launching it there; an open one is flown home and sold, less the trip. Water is worth more than platinum on the Moon's surface and on the surface of Mars; on the surface of Mars, platinum is worth nothing, since the trip home costs more than it sells for.
@@ -98,17 +98,17 @@ The first five repos work together to estimate whether an uncrewed asteroid mini
-**What it rests on.** The 1,889 sources in General_Research, in 30 domains, one bar for each, split by authority: T1 peer-reviewed papers, T2 NASA, ESA and AIAA reports, T3 government data with a DOI, and T4 grey sources such as company documents, price pages and my own audit records of pinned code. 41% are T1 or T2. The biggest, launch economics with 353, is mostly grey sources (266).
+**What it rests on.** The 1,930 sources in General_Research, in 30 domains, one bar for each, split by authority: T1 peer-reviewed papers, T2 NASA, ESA and AIAA reports, T3 government data with a DOI, and T4 grey sources such as company documents, price pages and my own audit records of pinned code. 41% are T1 or T2. The biggest, launch economics with 358, is mostly grey sources (267).
Code and paper for Constraints on the Origin of the Asteroid Belt's Compositional Gradient from Debiased Taxonomic Data. It tests whether the belt's switch from S-types to C-types dates back to formation, using 161,659 classified asteroids from AsteroidCatalog after collapsing collisional families and correcting for the brightness bias that favors S-types. The code rebuilds every figure and number in the paper from two public input files. The code is MIT-licensed and the paper's text CC BY 4.0, free to share and adapt with credit.
@@ -205,7 +205,7 @@ Both repos are private, but the sites are public.
-
website portfolio site 7,615 lines of code 10,124 total lines
+
website portfolio site 7,742 lines of code 10,272 total lines
The code for my portfolio site. Plain HTML, CSS and JavaScript with no build step.
@@ -231,18 +231,18 @@ Both repos are private, but the sites are public.
Every commit I've made to the repos above, from the first to this week. Each ring is one section of this page, the outermost the first; time runs clockwise from twelve o'clock, and a bigger dot is a busier week. Bots' commits aren't counted.
-
+
My latest commits:
-- 29 Nov · [Mars Global Mosaic](https://github.com/loggger101/Mars_Terrestrial_GlobalMosaic_GIS-Data/commit/37658b5bf7a1e451ec193b295b410b1d03b1df54): Deck slide 48 counts four releases; deck, PDF and the final release's copies replaced
-- 29 Nov · [Mars Global Mosaic](https://github.com/loggger101/Mars_Terrestrial_GlobalMosaic_GIS-Data/commit/3285f12f22df74d6c711311eecead66f9cf4c594): A last pass after the close: plan row P12 marked done, the handoff points to 'Closed'
-- 26 Nov · [Satellite-Space-Flight](https://github.com/loggger101/Satellite-Space-Flight/commit/3a17bc073fe18ef78eeafea8589d9597b0f9309e): Close out the Sentinel-1A/1C phasing project in the README and SCOPE
-- 26 Nov · [Satellite-Space-Flight](https://github.com/loggger101/Satellite-Space-Flight/commit/15243638f997099d390cb7a13412147505f4408d): selfcheck --quick leaves the slow scenario builders out, by name
-- 25 Nov · [General_Research](https://github.com/loggger101/General_Research/commit/6787ae2ca4a369ba7771c232ca4a080312522894): Audit cleanup: FINDINGS blocks in round order, checked; DOWNLOADS.md pruned
-- 24 Nov · [asteroid-belt-gradient](https://github.com/loggger101/asteroid-belt-gradient/commit/1d3ed8720cdb5aa8312ea0cdfd59de875af2632e): Paper: drop the "Draft version" line; Figure 3 says only the albedo labels are unused
+- 1 Dec · [spacevalue](https://github.com/loggger101/spacevalue/commit/f087b29a6a93753d694fa87d7368eaba6d8064bd): 0.8.8: manifests name their source commit; bad live quotes skipped (no value moves)
+- 1 Dec · [General_Research](https://github.com/loggger101/General_Research/commit/7d09fd7ef5c90ab84767cd6f73979bbfc8613529): Rounds 1121-1197 (Codex): rc-1039..rc-1104 opened
+- 1 Dec · [AsteroidCatalog](https://github.com/loggger101/AsteroidCatalog/commit/fd64e5d11637aa32b26d29e589a66fef596ad8fd): A 404 or 410 from a source's address is said in a quiet run
+- 1 Dec · [AsteroidCatalog](https://github.com/loggger101/AsteroidCatalog/commit/01530175c4f5d62e8d4b02984a0a5ee287ea9eb9): 0.14.2: a format the fetcher no longer reads is said in a quiet run (data contract unchanged…
+- 30 Nov · [General_Research](https://github.com/loggger101/General_Research/commit/96e6fb3afd5dfa62aff19d7e1c233f07307b4d1e): Rounds 1105-1120 (Codex): rc-1022..rc-1038 opened
+- 29 Nov · [website](https://github.com/loggger101/website/commit/8f9145b85355bad2c222229ee0f9fe2a265b60c4): Run every check with one Node command and stop timestamp-only Kaggle commits
### Languages
@@ -250,7 +250,7 @@ My latest commits:
The lines of code under each repo's name, added up by language.
-
+
### Passing Earth this week
@@ -258,7 +258,7 @@ The lines of code under each repo's name, added up by language.
The asteroids coming within 20 lunar distances of Earth in the week ahead, from NASA/JPL's close-approach data, refreshed every Monday. On the dial, each one sits at the day and distance of its closest approach. The sizes are estimates from each body's brightness, as almost none has been measured.
-
+
### Get in touch
diff --git a/docs/activity-compact.svg b/docs/activity-compact.svg
index 86b38fb..798de3e 100644
--- a/docs/activity-compact.svg
+++ b/docs/activity-compact.svg
@@ -1,4 +1,4 @@
-