Closed dianamaro closed 5 years ago
Can you send a piece of code that reproduces the error? Can you also send the error message?
The code can simply be the one I already posted:
pycircstat.omnibus(np.linspace(0,2*np.pi,8), w = np.array([7,4,1,1,2,1,2,2]))
Which produces the following error:
ValueError Traceback (most recent call last)
As the error message says, numpy as problems with your integer datatypes. You can fix that by
pycircstat.omnibus(np.linspace(0,2*np.pi,8), w = np.array([7,4,1,1,2,1,2,2], dtype=np.float))
or, simply,
pycircstat.omnibus(np.linspace(0,2*np.pi,8), w = np.array([7,4,1,1,2,1,2,2.]))
I don't manage to make the omnibus test with the binned data work. For example,
pycircstat.omnibus(np.linspace(0,2*np.pi,8), w = np.array([7,4,1,1,2,1,2,2]))
doesn't work but if I use the rayleigh test instead there is no problem.