[Numpy-discussion] scipy.stats.poisson.ppf raises "OverflowError: cannot convert float infinity to long"

Maria Liukis liukis@usc....
Tue Aug 4 17:36:30 CDT 2009

Hello everybody,

I'm using the following versions of scipy and numpy:

 >>> scipy.__version__
 >>> import numpy
 >>> numpy.__version__

Would anybody happen to know why I get an exception when calling  
scipy.stats.poisson.ppf function:

 >>> from scipy.stats import *
 >>> poisson.ppf(0.9999, 4)
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/lib64/python2.5/site-packages/scipy/stats/ 
distributions.py", line 3601, in ppf
   File "/usr/lib64/python2.5/site-packages/numpy/lib/ 
function_base.py", line 957, in place
     return _insert(arr, mask, vals)
OverflowError: cannot convert float infinity to long

Thanks a lot in advance,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20090804/3896a682/attachment.html 

More information about the NumPy-Discussion mailing list