Skip to content

Commit

Permalink
Fix issue discussed at UDST#75
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDavidson committed Jun 5, 2023
1 parent 4073f2b commit d73a37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synthpop/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def compare_to_constraints(synth, constraints):
w = constraints >= 1
counts, constraints = counts[w], constraints[w]

return chisquare(counts.values, constraints.values)
return chisquare(counts.values, constraints.values*np.mean(counts.values)/np.mean(constraints.values))


def draw_households(
Expand Down

0 comments on commit d73a37c

Please sign in to comment.