You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
results in TypeError: 'float' object cannot be interpreted as an integer.
This probably because of pynolh.params(dim) returns two ints and a float (r).
In Python 2:
nolh=pynolh.nolh(conf, remove)
results in TypeError: 'float' object cannot be interpreted as an index.
Checkmate, guys:)
The text was updated successfully, but these errors were encountered:
Thanks for raising this issue and the suggested fix, I made a few changes and the first example now works for me in python2 and python3
line in pynolh.py function nolh
changed from
s = m + (math.factorial(m - 1) / (2 * math.factorial(m - 3)))
changed to
s = int(m + (math.factorial(m - 1) / (2 * math.factorial(m - 3))))
line in pynolh.py function params
changed from
return m, q, s - dim
changed to
return m, q, int(s - dim)
I would like to see an example showing how to vary the number of sample points generated
In Python 3:
results in
TypeError: 'float' object cannot be interpreted as an integer
.This probably because of
pynolh.params(dim)
returns twoint
s and afloat
(r
).In Python 2:
results in
TypeError: 'float' object cannot be interpreted as an index
.Checkmate, guys:)
The text was updated successfully, but these errors were encountered: