Skip to content

Commit 19fb592

Browse files
committed
Fix error I introduced to cost_size docstring.
1 parent fea8ef9 commit 19fb592

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

brainx/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def format_matrix2(data,s,sc,c,lk,co,idc = [],costlist=[],nouptri = False):
6060

6161

6262
def cost_size(nnodes):
63-
"""Make N-length array of costs, with N the number of possible edges.
63+
"""Make N+1-length cost array, with N the number of possible edges.
6464
6565
Parameters
6666
----------
@@ -70,7 +70,7 @@ def cost_size(nnodes):
7070
Returns
7171
-------
7272
costs: numpy array
73-
N-length array of costs, with N the number of possible
73+
N+1-length array of costs, with N the number of possible
7474
undirected edges in the graph. The costs range from 0 to 1 and
7575
are equally-spaced.
7676

0 commit comments

Comments
 (0)