-
Notifications
You must be signed in to change notification settings - Fork 224
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
removing particles changes existing variables #418
Comments
Hi Lukas, Thanks for opening an issue about this. So just to confirm, I think what you were confused with is that Thanks again, |
Hi, you are right. This is what confused me. I expected the individual entries in the list to be pointers, but not the whole list ( or rather the python variable to be a reference to the single particle and not the position in the list). To be fair, the documentation of Lines 1303 to 1305 in 127f7c9
I'd recommend also mentioning this in the notebook and will create a PR |
Hi,
Thanks for the great project. I'm quite a beginner to n-body integration, but nevertheless rebound is easy to use.
This is not technical a bug, as it is working correctly, but not as one would expect and I think this could trip up beginners and might warrant a note in the docs.
Minimal example:
The solution is quite easy once one knows what happens:
But finding out that this happened wasn't obvious until I saw the same particle collide multiple times.
The text was updated successfully, but these errors were encountered: