Skip to content

Commit 5f27067

Browse files
committed
repair input check
1 parent 2ca4b95 commit 5f27067

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

data_model/input_checks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ def check_pop_per_zone(cls, land_use: pd.DataFrame):
230230
pop = (
231231
hh.groupby(households.home_zone_id)["persons_per_household"].sum()
232232
)
233-
return (pop == land_use.set_index("zone_id").TOTPOP).reindex(land_use.index)
233+
lu = land_use.set_index("zone_id")
234+
return (pop.reindex(lu.index) == lu.TOTPOP)
234235

235236

236237
class NetworkLinks(pa.DataFrameModel):

0 commit comments

Comments
 (0)