Skip to content

Fix notebooks CI: NASA budget account retitled to "Exploration" - #13

Merged
vdavez merged 1 commit into
mainfrom
fix-deep-space-budget-notebook
Jun 19, 2026
Merged

Fix notebooks CI: NASA budget account retitled to "Exploration"#13
vdavez merged 1 commit into
mainfrom
fix-deep-space-budget-notebook

Conversation

@makegov-mark

@makegov-mark makegov-mark Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

What

Fixes the nightly Execute notebooks job, red since #11 (unrelated to the open incumbent-on-post PR).

Root cause

budget-deep-space-exploration.ipynb located the account with:

client.list_budget_accounts(search="deep space", fiscal_year=2024, ...).results[0]

NASA retitled account 080-0124 from "Deep Space Exploration Systems" to simply "Exploration" starting in FY2024. So search="deep space" + fiscal_year=2024 now returns zero rows, and .results[0] raises IndexError. (The old title only survives on the frozen FY2023 record.)

Fix

  • Search for "exploration" instead — returns exactly account 080-0124 for FY2024, deterministically.
  • Add a one-line note that the title drifted while federal_account_symbol (080-0124) is the stable key — a useful lesson for readers, not just a patch.
  • Re-executed in place. The rest of the notebook keys off the hardcoded 080-0124, so nothing else changed structurally; cell 3 now prints 080-0124 Exploration — National Aeronautics and Space Administration.

Testing

uv run jupyter execute --inplace on the notebook completes cleanly (exit 0).

🤖 Generated with Claude Code

The nightly "Execute notebooks" job has failed since #11. The budget-deep-space
notebook looked the account up with search="deep space", fiscal_year=2024, which
now returns zero rows because NASA retitled account 080-0124 from "Deep Space
Exploration Systems" to "Exploration" starting in FY2024 — so .results[0] raised
IndexError.

Search for "exploration" instead (returns exactly that account for FY2024), and
add a one-line note that the title drifted while the federal_account_symbol stays
the stable key. Re-executed in place; the rest of the notebook keys off the
hardcoded 080-0124 and is unaffected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vdavez
vdavez merged commit 0c4df0c into main Jun 19, 2026
4 checks passed
@vdavez
vdavez deleted the fix-deep-space-budget-notebook branch June 19, 2026 01:28
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.

1 participant