Skip to content

Commit c3478d2

Browse files
committed
[STY] Style fix
1 parent 76c3d5b commit c3478d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

netneurotools/networks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ def math_length_degree_distribution(W, D, nbins=10, nswap=1000,
436436
L = np.zeros((N, N))
437437
for n in range(nbins):
438438
i, j = np.where(np.logical_and(bins[n] <= D, D < bins[n + 1]))
439-
L[i, j] = n+1
439+
L[i, j] = n + 1
440440

441441
# binarized connectivity
442442
B = (W != 0).astype(np.int_)
@@ -476,8 +476,8 @@ def math_length_degree_distribution(W, D, nbins=10, nswap=1000,
476476
ops2_x, ops2_y = ops1_x[index], ops1_y[index]
477477
# options of edges that didn't exist before
478478
index = [(newB[min(n_x, ops2_x[i])][max(n_x, ops2_x[i])] == 0)
479-
&
480-
(newB[min(n_y, ops2_y[i])][max(n_y, ops2_y[i])] == 0)
479+
& (newB[min(n_y, ops2_y[i])][max(n_y, ops2_y[i])] ==
480+
0)
481481
for i in range(len(ops2_x))]
482482
if(len(np.where(index)[0]) == 0):
483483
cn_x = np.delete(cn_x, r)

0 commit comments

Comments
 (0)