[SciPy-dev] lognormal(): TypeError: Cannot convert float to numpy.ndarray

rex rex at nosyntax.com
Mon Sep 11 18:17:24 EDT 2006


>>> import scipy as S
>>> S.random.lognormal(0,1,4)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "mtrand.pyx", line 930, in mtrand.RandomState.lognormal
TypeError: Cannot convert int to numpy.ndarray

>>> S.random.lognormal(0.,1.,7)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "mtrand.pyx", line 930, in mtrand.RandomState.lognormal
TypeError: Cannot convert float to numpy.ndarray


S.random.beta(), chisquare(), exponential(), f(), gamma(), and the
others I tried returned without errors.

Scipy was built from a recent SVN, but I don't recall the checkout
number.

Thanks,

-rex



More information about the SciPy-Dev mailing list