Skip to content

Commit 5d57acc

Browse files
committed
No need to cast inputs as arrays, because arrays are required params.
1 parent bf62b18 commit 5d57acc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nitime/algorithms/event_related.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ def fir(timeseries, design):
5555
and Unbiased Approach. Human Brain Mapping, 11:249-260
5656
5757
"""
58-
X = np.array(design)
59-
y = np.array(timeseries)
60-
h = np.array(np.dot(np.dot(linalg.pinv(np.dot(X.T, X)), X.T), y.T))
58+
h = np.array(np.dot(np.dot(linalg.pinv(np.dot(design.T, design)),
59+
design.T),
60+
timeseries.T))
6161
return h
6262

6363

0 commit comments

Comments
 (0)