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

Move Psi/Phi curve generation out of Python loop #712

Merged
merged 8 commits into from
Sep 20, 2024

Conversation

jeremykubica
Copy link
Contributor

Move the generation of the psi and phi curves from inside a Python loop to inside a C++ loop. This is a very small speedup, but also adds very little complexity.

This PR also:

  • breaks up some of the giant test_search.py by moving a few tests to test_stack_search_results.py
  • Applies clang formatting to the C++ files.

@jeremykubica jeremykubica requested review from drewoldag and removed request for maxwest-uw September 19, 2024 15:18
self.assertTrue(np.all(phi_curves > 0.0))

# Check that the batch getters give the same results as the iterative ones.
for i in range(self.num_objs):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice, looks good.

Copy link
Collaborator

@drewoldag drewoldag left a comment

Choose a reason for hiding this comment

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

This all looks pretty reasonable to me.

@jeremykubica jeremykubica merged commit 2008221 into main Sep 20, 2024
2 checks passed
@jeremykubica jeremykubica deleted the trajectory_load_optimization branch September 20, 2024 21:10
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.

3 participants