Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion mvpa2/measures/rsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ def __init__(self, X, pairwise_metric='correlation', center_data=False,**kwargs)
for i in range(m):
X[i,:] = rankdata(X[i,:])

if isinstance(X, np.matrix):
self.X = X
else:
self.X = np.matrix(X)
self.pairwise_metric = pairwise_metric
self.center_data = center_data

Expand All @@ -293,7 +297,7 @@ def _call(self,ds):
b[np.isnan(b)] = 0


return Dataset(b)
return Dataset(np.asarray(b))



Expand Down