You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am in situation where I would like to calculate a property for all halos in a timestep that satisfy a condition on a different property (all halos in a mass range for example).
It feels like this should be feasible since the web interface allows you to filter halos on a given condition very easily but I can't find the right syntax to make it work within python with calculate_all().
An example of this use case is actually provided here
Hi all,
I am in situation where I would like to calculate a property for all halos in a timestep that satisfy a condition on a different property (all halos in a mass range for example).
It feels like this should be feasible since the web interface allows you to filter halos on a given condition very easily but I can't find the right syntax to make it work within python with calculate_all().
An example of this use case is actually provided here
tangos/tangos/examples/mergers.py
Lines 31 to 42 in 7fb6052
but in a wasteful way (e.g. calculate for all halos and then mask, rather than calculate just for the masked halos)
Is this something that is easily achievable ? Where is the definition of the underlying filtering command used by the web interface ?
The text was updated successfully, but these errors were encountered: