Skip to content

Conversation

RemiLehe
Copy link
Member

@RemiLehe RemiLehe commented Oct 22, 2024

This allows to do:

pt_merged = pt1 || pt2   # Creates particle tracker that selects particles that are either in `pt1` and `pt2`
pt_intersect = p1 & pt2  # Creates particles tracker that are in both `pt1` and `pt2`

TODO: add tests and documentation

@RemiLehe RemiLehe force-pushed the particle_tracker_improvements branch from 7d54742 to 78aa312 Compare October 22, 2024 22:27
@RemiLehe RemiLehe changed the title Overload the intersection and union operators for ParticleTracker [WIP] Overload the intersection and union operators for ParticleTracker Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant