-
Notifications
You must be signed in to change notification settings - Fork 0
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
Rewrite initial_recombination.py in pure python #38
Conversation
Co-authored-by: Leszek Grzanka <grzanka@agh.edu.pl>
…com/jbrage/IonTracks into feature/28-initial-recombination-py
hadrons/initial_recombination.py
Outdated
# update the positive and negative arrays | ||
start_time = time.time() | ||
|
||
positive_array[1:(no_x-1),1:(no_x-1),1:(no_z_with_buffer-1)] = positive_array_temp[1:(no_x-1),1:(no_x-1),1:(no_z_with_buffer-1)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
positive_array[1:(no_x-1),1:(no_x-1),1:(no_z_with_buffer-1)] = positive_array_temp[1:(no_x-1),1:(no_x-1),1:(no_z_with_buffer-1)] | |
positive_array[1:-1,1:-1,1:-1] = positive_array_temp[1:-1,1:-1,1:-1] |
what about such code ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that should be better. I didn't really look into what no_x etc. were.
@retkiewi fix failing tests |
Hmm, they were passing on my end, probably some compilation weirdness/me forgetting to add a file before committing. |
Never mind, I didn't notice I was selecting only one of the tests to be run locally. Should be working now :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
fixes #28