Skip to content

Commit

Permalink
Resolve float object error
Browse files Browse the repository at this point in the history
Resolve float object error using the floor division operator.
  • Loading branch information
dkav authored and venkanna37 committed Nov 10, 2021
1 parent 4beb705 commit 64465f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolbox/scripts/s2_buildNetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def get_full_adj_list():
coreList = lu.get_core_list(cfg.COREFC, cfg.COREFN)
coreList = coreList[:,0]
numCores = len(coreList)
adjList = npy.zeros((numCores*(numCores-1)/2,2), dtype="int32")
adjList = npy.zeros((numCores*(numCores-1)//2,2), dtype="int32")
pairIndex = 0
for sourceIndex in range(0,numCores-1):
for targetIndex in range(sourceIndex + 1, numCores):
Expand Down

0 comments on commit 64465f9

Please sign in to comment.