Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using sparse_a in solve fails #60

Open
moorepants opened this issue Mar 18, 2014 · 0 comments
Open

Using sparse_a in solve fails #60

moorepants opened this issue Mar 18, 2014 · 0 comments
Labels

Comments

@moorepants
Copy link
Member

result = solver.solve(sparse_a=True)

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-44-c96f1dfa9907> in <module>()
----> 1 result = solver.solve(sparse_a=True)

/home/moorepants/src/Gait-Analysis-Toolkit/gaitanalysis/controlid.pyc in solve(self, sparse_a, gain_omission_matrix)
    749         x, variance, covariance = self.least_squares(A, b)
    750 
--> 751         deconstructed_solution = self.deconstruct_solution(x, covariance)
    752 
    753         gain_matrices = deconstructed_solution[0]

/home/moorepants/src/Gait-Analysis-Toolkit/gaitanalysis/controlid.pyc in deconstruct_solution(self, x, covariance)
    299         control_vectors_variance = np.zeros((self.n, self.q))
    300 
--> 301         parameter_variance = np.diag(covariance)
    302 
    303         for i in range(self.n):

/home/moorepants/envs/walk/local/lib/python2.7/site-packages/numpy/lib/twodim_base.pyc in diag(v, k)
    287         return v.diagonal(k)
    288     else:
--> 289         raise ValueError("Input must be 1- or 2-d.")
    290 
    291 def diagflat(v, k=0):

ValueError: Input must be 1- or 2-d.

@moorepants moorepants added the bug label May 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant