Skip to content

Conversation

@krivard
Copy link
Contributor

@krivard krivard commented Dec 9, 2021

Description

Add population, replace geo, then divide by population.

Adds test of aggregation for prop signals.

Changelog

Itemize code/test/documentation changes and files added/removed.

  • run.py: Refactor pop prop computations, and pull out all df transforms so they can be more easily tested
  • test_run.py: Update pop prop tests, and add test of geo aggregation for pop prop signal

Fixes

Add population, replace geo, *then* divide by population.
Includes test of aggregation.
with pytest.raises(Exception):
make_signal(data, "zig")

def test_pop_proportion():
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note on this change, since the diffs are not helping with clarity here.

test_pop_proportion used to test two individual states as two separate asserts.

The replacement, test_transform_signal_pop, tests two geos, with both states in the first assert, and nation as the second assert.

@krivard krivard requested a review from melange396 December 9, 2021 20:40
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.

Hospital admissions scale is way off

3 participants