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

Fixed bug in beam.eliminate-lost-particles. #205

Merged

Conversation

fschuderer
Copy link

@fschuderer fschuderer commented Feb 7, 2022

Arrays beam.dt and beam.dE can be updated if more than 0 particles are still alive.

Array beam.id must be updated after deleting particles because array length changes. This will change particle ID enumeration but if this array is not updated, the method can be called only once, because afterwards len(beam.dt), len(beam.dE) != len(beam.id).

np.ascontiguousarray does not have keyword 'order' anymore. It is of C-order by default.

This commit fixes issue #143 .

Arrays beam.dt and beam.dE can be updated if more than 0 particles are still alive.
Array beam.id must be updated after deleting particles because array length changes.
@htimko htimko merged commit 620e545 into blond-admin:master Feb 8, 2022
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.

None yet

2 participants