Skip to content

Commit

Permalink
coerce population_size to be an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidari committed Feb 27, 2025
1 parent 14ba0bb commit abfdffb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pipelines/build_pyrenew_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def build_model_from_dir(
else None
)

population_size = jnp.array(model_data["state_pop"])
population_size = jnp.array(model_data["state_pop"]).item()

pop_fraction = jnp.array(model_data["pop_fraction"])

Expand Down
2 changes: 1 addition & 1 deletion pyrenew_hew/pyrenew_wastewater_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def site_subpop_spine(self):
"site_pop": (
self.population_size
- site_indices.get_column("site_pop").sum()
).tolist(),
),
}
)
else:
Expand Down

0 comments on commit abfdffb

Please sign in to comment.