This converts arbor slicing (i.e., a[:] syntax) from returning arrays of TreeNodes to returning a generator of TreeNodes and does the same thing for the select_halos function.
The select_halos function will now also begin returning matching halos as soon as they are found instead of return an array of halos at the end. This allows the user to begin working on them right away. The progress bar will also continually update to report the number of matches found. The select_from keyword is now deprecated in favor of using a detector to figure out which selector is to be used.
PR Checklist
[x] Code passes tests.
[x] New features are documented with docstrings and narrative docs.
PR Summary
This converts arbor slicing (i.e.,
a[:]
syntax) from returning arrays of TreeNodes to returning a generator of TreeNodes and does the same thing for theselect_halos
function.The
select_halos
function will now also begin returning matching halos as soon as they are found instead of return an array of halos at the end. This allows the user to begin working on them right away. The progress bar will also continually update to report the number of matches found. Theselect_from
keyword is now deprecated in favor of using a detector to figure out which selector is to be used.PR Checklist