From 972209277d2a5077cddf3af5228053671f120737 Mon Sep 17 00:00:00 2001 From: CindeeM Date: Tue, 10 Sep 2013 11:39:06 -0700 Subject: [PATCH] BF: fix order of index subject, condition to slice data in format_matrix --- brainx/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brainx/util.py b/brainx/util.py index 790605e..e97f3a2 100644 --- a/brainx/util.py +++ b/brainx/util.py @@ -66,7 +66,7 @@ def format_matrix(data, s, b, lk, co, idc=[], costlist=[], if True return boolean mask, otherwise returns thesholded weight matrix """ - cmat = slice_data(data, b,s) + cmat = slice_data(data, s, b) th = cost2thresh(co,s,b,lk,idc,costlist) #get the right threshold cmat = thresholded_arr(cmat,th,fill_val=0) if not nouptri: