-
Notifications
You must be signed in to change notification settings - Fork 2
Christian/update estimate prioritization #268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
aadf3be
c7551a5
6de8813
3071141
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,8 +7,8 @@ | |
| ], | ||
| 'adjustment_testadj': [ | ||
| lambda estimate: (estimate['pop_adj'] is True) and (estimate['test_adj'] is True), | ||
| lambda estimate: (pd.isna(estimate['pop_adj'])) and (estimate['test_adj'] is True), | ||
| lambda estimate: (estimate['pop_adj'] is True) and (pd.isna(estimate['test_adj'])), | ||
| lambda estimate: (pd.isna(estimate['pop_adj'])) and (estimate['test_adj'] is True), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems fair to me @123chrisc - could certainly make a cogent argument that now with higher seroprevalence and better assays, we should prioritize pop-adj test-unadj in these cases
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Variables were all checked to match. Sorting pooling functions now!
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All variables do have a pooling function. They are also matched to the airtable_fields_config.py |
||
| lambda estimate: (pd.isna(estimate['pop_adj'])) and (pd.isna(estimate['test_adj'])), | ||
| ], | ||
| 'primary_estimate_testunadj': [ | ||
|
|
@@ -24,7 +24,6 @@ | |
| lambda estimate: estimate['estimate_grade'] == 'National', | ||
| lambda estimate: estimate['estimate_grade'] == 'Regional', | ||
| lambda estimate: estimate['estimate_grade'] == 'Local', | ||
| lambda estimate: estimate['estimate_grade'] == 'Sublocal', | ||
| ], | ||
| 'age': [ | ||
| lambda estimate: estimate['age'] == 'Multiple groups' | ||
|
|
@@ -53,8 +52,11 @@ | |
| ], | ||
| 'test_type': [ | ||
| lambda estimate: estimate['test_type'] == 'Neutralization', | ||
| lambda estimate: estimate['test_type'] == 'Multiple Types', | ||
| lambda estimate: estimate['test_type'] == 'ELISA', | ||
| lambda estimate: estimate['test_type'] == 'CLIA', | ||
| lambda estimate: estimate['test_type'] == 'ELISA' | ||
| lambda estimate: estimate['test_type'] == 'LFIA', | ||
| lambda estimate: estimate['test_type'] == 'Other', | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These 'catch-call' cases are already implied to be the last thing in the hierarchy, if they're not listed among the options listed- but it's good to be explicit about them! |
||
| ], | ||
| 'specimen': [ | ||
| lambda estimate: estimate['specimen_type'] != 'Dried Blood' | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.