Skip to content

55 estimate coverage#56

Closed
kaitejohnson wants to merge 2 commits intomainfrom
55-estimate-coverage
Closed

55 estimate coverage#56
kaitejohnson wants to merge 2 commits intomainfrom
55-estimate-coverage

Conversation

@kaitejohnson
Copy link
Collaborator

No description provided.

Kaitlyn Johnson and others added 2 commits December 11, 2025 14:00
Memory optimization strategy:
- Process locations one at a time using lapply() instead of all at once
- Filter to desired intervals and select only necessary columns immediately
- Allow garbage collection between location processing
- Combine results using bind_rows() at the end

This significantly reduces peak memory usage by:
1. Not loading all location data into memory simultaneously
2. Only keeping essential columns (location, nowcast_date, model_id, clade,
   interval_range, interval_coverage, target_date)
3. Processing smaller chunks that fit in memory

Changes:
- Modified R/compute_coverage.R to use chunked processing by location
- Added bind_rows import to NAMESPACE
- Added pivot_wider import to NAMESPACE (for plotting function)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@coderabbitai
Copy link

coderabbitai bot commented Dec 23, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 55-estimate-coverage

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link

codecov bot commented Dec 23, 2025

Codecov Report

❌ Patch coverage is 0% with 24 lines in your changes missing coverage. Please review.
✅ Project coverage is 0.13%. Comparing base (fd20c37) to head (a119903).
⚠️ Report is 49 commits behind head on main.

Files with missing lines Patch % Lines
R/compute_coverage.R 0.00% 24 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main     #56      +/-   ##
========================================
- Coverage   0.16%   0.13%   -0.04%     
========================================
  Files         13      16       +3     
  Lines       1856    2285     +429     
========================================
  Hits           3       3              
- Misses      1853    2282     +429     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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