Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Overload the intersection and union operators for ParticleTracker #427

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

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