Skip to content

Commit 33e1ccf

Browse files
author
cindeem
committed
Merge pull request #14 from cindeem/fix_newman
BF: fix order of index subject, condition to slice data in format_matrix
2 parents 6d1af63 + 9722092 commit 33e1ccf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

brainx/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def format_matrix(data, s, b, lk, co, idc=[], costlist=[],
6666
if True return boolean mask, otherwise returns thesholded
6767
weight matrix
6868
"""
69-
cmat = slice_data(data, b,s)
69+
cmat = slice_data(data, s, b)
7070
th = cost2thresh(co,s,b,lk,idc,costlist) #get the right threshold
7171
cmat = thresholded_arr(cmat,th,fill_val=0)
7272
if not nouptri:

0 commit comments

Comments
 (0)