SyntaxFix
Write A Post
Hire A Developer
Questions
Try:
np.intersect1d(np.where(dists >= r)[0],np.where(dists <= r + dr)[0])