Fix notebooks CI: NASA budget account retitled to "Exploration" - #13
Merged
Conversation
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>
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.
What
Fixes the nightly Execute notebooks job, red since #11 (unrelated to the open incumbent-on-post PR).
Root cause
budget-deep-space-exploration.ipynblocated the account with:NASA retitled account
080-0124from "Deep Space Exploration Systems" to simply "Exploration" starting in FY2024. Sosearch="deep space"+fiscal_year=2024now returns zero rows, and.results[0]raisesIndexError. (The old title only survives on the frozen FY2023 record.)Fix
"exploration"instead — returns exactly account080-0124for FY2024, deterministically.federal_account_symbol(080-0124) is the stable key — a useful lesson for readers, not just a patch.080-0124, so nothing else changed structurally; cell 3 now prints080-0124 Exploration — National Aeronautics and Space Administration.Testing
uv run jupyter execute --inplaceon the notebook completes cleanly (exit 0).🤖 Generated with Claude Code