Skip to content

Fix ch2 memory issues#52

Merged
tyfolino merged 5 commits into
ProjectPythia:mainfrom
tyfolino:fix-ch2-memory
Mar 16, 2026
Merged

Fix ch2 memory issues#52
tyfolino merged 5 commits into
ProjectPythia:mainfrom
tyfolino:fix-ch2-memory

Conversation

@tyfolino

Copy link
Copy Markdown
Collaborator

Summary

  • Added spatial subsetting (bounding box) to all fetch_mrms_data calls in ch2, reducing memory usage ~17x by loading only the relevant CONUS region instead of the full dataset
  • Refactored 13 near-identical plotting blocks into a plot_mrms() helper function
  • Fixed a bug in the RotationTrack60min cell
  • Re-adds ch2 to the TOC after previously being excluded due to memory issues

Test plan

  • PR build executes ch2 successfully without memory errors
  • All other chapters still build cleanly

🤖 Generated with Claude Code

tyfolino and others added 3 commits March 13, 2026 16:11
…h 2, added spatial subsetting to reduce memory
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

👋 Thanks for opening this PR! The Cookbook will be automatically built with GitHub Actions. To see the status of your deployment, click below.
🔍 Git commit SHA: a481272
✅ Deployment Preview URL: In Progress

Removed commented-out code for fetching MRMS data and related functions.

@tyfolino tyfolino left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Cleaned up code a bit, seems to be working much better now.

@tyfolino tyfolino merged commit 38f5e9f into ProjectPythia:main Mar 16, 2026
2 checks passed
@tyfolino tyfolino deleted the fix-ch2-memory branch March 16, 2026 19:53
github-actions Bot pushed a commit that referenced this pull request Mar 16, 2026
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