Closed debjyoti88 closed 4 years ago
Hi,
Tried to reproduce the error but I can't seem to do it. It seems that the 'svds' function in your Scipy library returns a F-contiguous array. Could you try and update your Scipy library (maybe Numpy as well)?
If it still doesn't work, then a quick fix would be to remove the assumption of a C-contiguous array. You can do that by changing line 138 in 'covariance_cy.pyx' to following: cpdef rmse2d_eig(float[:,:] A, float[:,:] B):
After this you need to run 'python setup.py build_ext --inplace' again. :-)
Best, Jonas
Hi Jonas, Changing line 138 worked. Now the script works for all sample sizes. Thank you :) Best. Debjyoti
Hi, I ran PCAngsd for 10 samples and it successfully produced a covariance matrix. However when I tried it for more than 10 samples, I got the error: ValueError: ndarray is not C-contiguous
Please see the terminal output below:
Could you please help me troubleshoot this issue? Thank you.