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

Rewrite initial_recombination.py in pure python #38

Merged
merged 15 commits into from
Aug 18, 2022

Conversation

retkiewi
Copy link
Collaborator

@retkiewi retkiewi commented Aug 8, 2022

fixes #28

Co-authored-by: Leszek Grzanka <grzanka@agh.edu.pl>
@grzanka grzanka mentioned this pull request Aug 17, 2022
5 tasks
@retkiewi retkiewi marked this pull request as ready for review August 17, 2022 22:14
# 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)]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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 ?

Copy link
Collaborator Author

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.

@grzanka
Copy link
Collaborator

grzanka commented Aug 18, 2022

@retkiewi fix failing tests

@retkiewi
Copy link
Collaborator Author

Hmm, they were passing on my end, probably some compilation weirdness/me forgetting to add a file before committing.

@retkiewi
Copy link
Collaborator Author

Never mind, I didn't notice I was selecting only one of the tests to be run locally. Should be working now :)

Copy link
Collaborator

@grzanka grzanka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@grzanka grzanka merged commit 801b6b1 into master Aug 18, 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.

Rewrite initial_recombination.pyx to pure Python
2 participants