Skip to content

Commit

Permalink
[FIX] fixing style
Browse files Browse the repository at this point in the history
  • Loading branch information
fmilisav committed Mar 2, 2024
1 parent a3e80a8 commit c0703ae
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions netneurotools/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,15 @@ def struct_consensus(data, distance, hemiid,
# determine average # of positive edges across subs
# we will use this to bin the edge weights
if conn_type == 0:
if conn_num_inter == None:
if conn_num_inter is None:
avg_conn_num = len(pos_dist) / num_sub
else: avg_conn_num = conn_num_inter
else:
avg_conn_num = conn_num_inter
else:
if conn_num_intra == None:
if conn_num_intra is None:
avg_conn_num = len(pos_dist) / num_sub
else: avg_conn_num = conn_num_intra
else:
avg_conn_num = conn_num_intra

# estimate empirical CDF of weighted, positive edges across subs
cumprob, quantiles = _ecdf(pos_dist)
Expand Down

0 comments on commit c0703ae

Please sign in to comment.