Skip to content

Commit

Permalink
fix: Import linalg from scipy
Browse files Browse the repository at this point in the history
  • Loading branch information
danfke committed May 16, 2022
1 parent db209b3 commit 0ad2d15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/emgdecompy/emgdecompy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from scipy.io import loadmat
from scipy import linalg
import pandas as pd
import altair as alt
import numpy as np
Expand Down Expand Up @@ -137,7 +138,7 @@ def center_matrix(x):
[ 0. 0. 0. 0.]]
"""
x_cent = x.T - np.mean(x.T, axis=0)
x_cent = x - np.mean(x.T, axis=0)
x_cent = x_cent.T
return x_cent

Expand Down

0 comments on commit 0ad2d15

Please sign in to comment.