Closed cmaloney111 closed 1 month ago
Thanks for this. This reminds me of another bug I fixed recently, where something np.sum(im)
would use the dtype
of im
when doing the sum. I fixed it by specifying the dtype in the sum function, similar to what you did here. Thanks for catching this.
No problem!
The
_get_radial_sum
function currently overflows for large autocorrelation values. This can lead to negative values for the probability in thetwo_point_correlation
function.Problem When using the two_point_correlation function with large autocorrelation values, I encountered overflow errors:
two_point_correlation
code), it causes an OverflowError with the message "Python int too large to convert to C long."Solution To fix this issue, I: