DPPy
DPPy copied to clipboard
Fix tests
Miscellaneous changes to get all the tests working.
- Missing a
np.int->intconversion (https://github.com/guilgautier/DPPy/issues/75). - In numpy 2.0.0,
np.complex_->np.complex128. - Add
sum_check=False. (note: this requiresscipy>=1.15.0, but that should be ok since it's just for the tests.)
For the last point, see https://github.com/scipy/scipy/issues/12282, https://github.com/scipy/scipy/issues/14298, https://github.com/scipy/scipy/pull/13193, https://github.com/scipy/scipy/pull/21695. I'm not familiar enough with this code to know whether it makes more sense to normalize the sum of the observed frequencies to the sum of the expected frequencies (or the other way around) but they seemed fairly similar so I just disabled the sum check.