dfm / corner.py

Make some beautiful corner plots

Home Page:http://corner.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: 'float' object cannot be interpreted as an integer

nilswagner opened this issue · comments

python3 demo.py
Traceback (most recent call last):
File "demo.py", line 21, in
data1 = np.random.randn(ndim * 4 * nsamples / 5).reshape([4 * nsamples / 5,
File "mtrand.pyx", line 1220, in numpy.random.mtrand.RandomState.randn
File "mtrand.pyx", line 1377, in numpy.random.mtrand.RandomState.standard_normal
File "_common.pyx", line 558, in numpy.random._common.cont
TypeError: 'float' object cannot be interpreted as an integer

Are ndim and nsamples integers or floats?