Skip to content

Commit

Permalink
Fix a new overflow in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RedTachyon committed Jun 27, 2024
1 parent 1b06bd0 commit 0600238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/spaces/test_spaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def chi2_test(sample, low, high, bounded_below, bounded_above):

if bounded_below and bounded_above:
# X ~ U(low, high)
degrees_of_freedom = high - low + 1
degrees_of_freedom = int(high) - int(low) + 1
observed_frequency = np.bincount(sample - low, minlength=degrees_of_freedom)
assert observed_frequency.shape == (degrees_of_freedom,)
expected_frequency = np.ones(degrees_of_freedom) * n_trials / degrees_of_freedom
Expand Down

0 comments on commit 0600238

Please sign in to comment.