corner.py icon indicating copy to clipboard operation
corner.py copied to clipboard

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

Open nilswagner opened this issue 5 years ago • 1 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

nilswagner avatar Apr 02 '20 08:04 nilswagner

Are ndim and nsamples integers or floats?

shbhuk avatar Apr 02 '20 16:04 shbhuk