Skip to content

Commit db14fed

Browse files
authored
Update _binCluster for compatiability scipy
Updated argument name in cKDTree.query used in function _binCluster In scipy 1.9.0 scipy.spatial.cKDtree.query argument "n_jobs" became "workers"
1 parent 57a420f commit db14fed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alphaspace2/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ def _binCluster(coords, bin_size, bin_buffer_ratio=0.01, distance=5.4):
515515
label = fcluster(zmat, distance, criterion='distance') - 1
516516

517517
tree = cKDTree(non_zero_cube_coord)
518-
dist, ind = tree.query(coords, 1, n_jobs=1)
518+
dist, ind = tree.query(coords, 1, workers=1)
519519

520520
pocket_label = label[ind]
521521

0 commit comments

Comments
 (0)