Skip to content

Commit

Permalink
update-pqts fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-williams committed Feb 3, 2024
1 parent 984d92c commit f14aadb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion njsp/cli/update_pqts.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def update_pqts():

# Verify the reported "total deaths" stat reflects what we see in the crash records
njsp_totals = totals.fatalities.rename('NJSP total')
fatalities_per_year = crashes.FATALITIES.groupby(dt.year).sum().astype(int).rename('NJSP records')
fatalities_per_year = crashes.FATALITIES.groupby(crashes.dt.dt.year).sum().astype(int).rename('NJSP records')
njsp_diffs = sxs(njsp_totals, fatalities_per_year)[njsp_totals != fatalities_per_year]
if not njsp_diffs.empty:
raise RuntimeError(f"NJSP totals don't match crash records:\n{njsp_diffs}")
Expand Down

0 comments on commit f14aadb

Please sign in to comment.