Skip to content

Commit fde7626

Browse files
author
Caterina Gratton
committed
Ensure tot_edges is int for range
1 parent 16186ad commit fde7626

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

brainx/util.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ def format_matrix2(data,s,sc,c,lk,co,idc = [],costlist=[],nouptri = False):
6161

6262
def cost_size(nnodes):
6363
tot_edges = .5*nnodes*(nnodes-1)
64-
6564
costs = np.array(range(int(tot_edges)+1),dtype=float)/tot_edges
6665
edges_short = tot_edges/2
6766
return costs,tot_edges,edges_short

0 commit comments

Comments
 (0)