Skip to content

Commit

Permalink
Merge branch '323-use-forecasttoolslocation_table-instead-of-download…
Browse files Browse the repository at this point in the history
…ing-populations' into dhm-run-pyrenew-h
  • Loading branch information
dylanhmorris committed Feb 5, 2025
2 parents d2e218c + 59cbd33 commit 8a8aac9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pipelines/prep_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ def process_state_level_data(

if state_abb == "US":
locations_to_aggregate = (

Check warning on line 148 in pipelines/prep_data.py

View check run for this annotation

Codecov / codecov/patch

pipelines/prep_data.py#L148

Added line #L148 was not covered by tests
state_pop_df["abb"].filter(pl.col("abb") != "US").unique()
state_pop_df.filter(pl.col("abb") != "US")
.get_column("abb")
.unique()
)
logger.info("Aggregating state-level data to national")
state_level_nssp_data = aggregate_to_national(
Expand Down Expand Up @@ -207,7 +209,9 @@ def aggregate_facility_level_nssp_to_state(
if state_abb == "US":
logger.info("Aggregating facility-level data to national")
locations_to_aggregate = (

Check warning on line 211 in pipelines/prep_data.py

View check run for this annotation

Codecov / codecov/patch

pipelines/prep_data.py#L211

Added line #L211 was not covered by tests
state_pop_df["abb"].filter(pl.col("abb") != "US").unique()
state_pop_df.filter(pl.col("abb") != "US")
.get_column("abb")
.unique()
)
facility_level_nssp_data = aggregate_to_national(
facility_level_nssp_data,
Expand Down

0 comments on commit 8a8aac9

Please sign in to comment.