diff --git a/ostap/stats/gof_np.py b/ostap/stats/gof_np.py index 493f486a..63b9e197 100644 --- a/ostap/stats/gof_np.py +++ b/ostap/stats/gof_np.py @@ -44,13 +44,13 @@ ## if (1,6,0) <= sp_version : qconf = { 'k' : [ 2 ] , 'workers' : -1 } - def neigbour_distances ( tree , data ) : + def neighbour_distances ( tree , data ) : dist , _ = tree.query ( data , **conf ) dist = dist.flatten() return dist else : qconf = { 'k' : 2 } - def neigbour_distances ( tree , data ) : + def neighbour_distances ( tree , data ) : dist , _ = tree.query ( data , **conf ) dist = np.delete ( dist , 0 , axis = 1 ) dist = dist.flatten()