In that notebook the available targets are computed using a tree that comes from a C++ method (TargetTree) that used to be in fiberassign
# Compute the targets available to all positioners
tree = TargetTree(tgs, 0.01)
tgsavail = TargetsAvailable(hw, tgs, tiles, tree)
I am updating the fiberassign tutorial here
https://github.com/desihub/tutorials/blob/39ab3f17a648322e44c7ab932eead2edaeb335f8/FiberAssignAlgorithms_Part1.ipynb
In that notebook the available targets are computed using a tree that comes from a C++ method (
TargetTree) that used to be in fiberassignThat C++ internal method was replaced by scipy KDTree in PR #353.
What would be then the best way to compute
tgsavailwith the current fiberassign version?