Skip to content

Commit

Permalink
Fix for #24
Browse files Browse the repository at this point in the history
  • Loading branch information
furbrain committed Apr 16, 2024
1 parent 4113c97 commit 683c2db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions firmware/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ def lstsq(A, B):
else:
import scipy

A_sq = np.dot(A.T, A)
A_sq = np.dot(A.transpose(), A)
R = np.linalg.cholesky(A_sq)
if ULAB_PRESENT:
x = scipy.linalg.cho_solve(R, np.dot(A.T, B))
x = scipy.linalg.cho_solve(R, np.dot(A.transpose(), B))
else:
x = scipy.linalg.cho_solve((R, True), np.dot(A.T, B))
x = scipy.linalg.cho_solve((R, True), np.dot(A.transpose(), B))
return x, None


Expand Down
2 changes: 1 addition & 1 deletion firmware/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import binascii

__version__ = "1.3.2"
__version__ = "1.3.3"

from . import layouts

Expand Down

0 comments on commit 683c2db

Please sign in to comment.