Skip to content

Commit 5495fc2

Browse files
committed
revert back last commit changes
1 parent 8faa7e1 commit 5495fc2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

nitime/analysis/granger.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,8 @@ def __init__(self, input=None, ij=None, order=None, max_order=10,
108108
# non-same i's and j's:
109109
x, y = np.meshgrid(np.arange(self._n_process),
110110
np.arange(self._n_process))
111-
# index into the **lower** triangle. Then the element (i,j) stores
112-
# the causality from x to y, e.g. gc['gc_xy'][i, j] = f_x2y
113-
self.ij = list(zip(y[tril_indices_from(y, -1)],
114-
x[tril_indices_from(x, -1)]))
111+
self.ij = list(zip(x[tril_indices_from(x, -1)],
112+
y[tril_indices_from(y, -1)]))
115113
else:
116114
self.ij = ij
117115

0 commit comments

Comments
 (0)