Skip to content

Commit d9c51f6

Browse files
committed
fix issue when chunk_size is not integer in locs_to_ids
1 parent 373509c commit d9c51f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dvid/fetch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ def locs_to_ids(pos, chunk_size=10e3, progress=True, server=None, node=None):
743743
for ix in trange(0, len(pos), int(chunk_size),
744744
disable=not progress,
745745
desc='Querying positions'):
746-
chunk = pos[ix: ix + chunk_size]
746+
chunk = pos[ix: ix + int(chunk_size)]
747747

748748
r = dvid_session().get("{}/api/node/{}/{}/labels".format(server,
749749
node,

0 commit comments

Comments
 (0)