Skip to content

Handle empty attrition before downsampling#196

Closed
anthonysena wants to merge 1 commit intodevelopfrom
issue-195-down-sample
Closed

Handle empty attrition before downsampling#196
anthonysena wants to merge 1 commit intodevelopfrom
issue-195-down-sample

Conversation

@anthonysena
Copy link
Copy Markdown
Contributor

Aims to fix #195

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.24%. Comparing base (be507e8) to head (ddafd33).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #196   +/-   ##
========================================
  Coverage    94.24%   94.24%           
========================================
  Files           22       22           
  Lines         6517     6517           
========================================
  Hits          6142     6142           
  Misses         375      375           

☔ 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.

Comment thread R/DataLoadingSaving.R
targetId,
maxCohortSize) {
if (maxCohortSize == 0) {
if (maxCohortSize == 0 || length(attrition$targetPersons) == 0) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

A note on this: attrition always returns a named list that has multiple names (i.e. targetPersons, comparatorPersons, etc) so checking length(attrition) > 0 will always return TRUE so I'm checking a specific list item length.

@schuemie
Copy link
Copy Markdown
Member

Solved somewhat differently here, so closing this

@schuemie schuemie closed this Apr 13, 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.

2 participants