Skip to content

Commit bbe4c2b

Browse files
committed
Use np.dot instead of the fancy matmul operator.
For fans of legacy Python.
1 parent 986168d commit bbe4c2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nitime/algorithms/event_related.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def fir(timeseries, design):
5757
"""
5858
X = np.array(design)
5959
y = np.array(timeseries)
60-
h = np.array(linalg.pinv(X.T @ X) @ X.T @ y.T)
60+
h = np.array(np.dot(np.dot(linalg.pinv(np.dot(X.T, X)), X.T), y.T))
6161
return h
6262

6363

0 commit comments

Comments
 (0)