When computing p-values, get an error saying an invalid value is being passed to sp.special.gammaln(x + 1) in the log_GP_pmf() function in the genpois module. Tried troubleshooting and found that rows from input file are being processed in a random order and the function fails at different rows each time. x, the variable that is being passed to the function is of type: numpy.int64.
RuntimeWarning: invalid value encountered in log
- sp.special.gammaln(x + 1)
When computing p-values, get an error saying an invalid value is being passed to sp.special.gammaln(x + 1) in the log_GP_pmf() function in the genpois module. Tried troubleshooting and found that rows from input file are being processed in a random order and the function fails at different rows each time. x, the variable that is being passed to the function is of type: numpy.int64.
RuntimeWarning: invalid value encountered in log