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

fix nbody indexing error & add unit test #360

Merged
merged 8 commits into from
Apr 10, 2024
Merged

Conversation

sblunt
Copy link
Owner

@sblunt sblunt commented Feb 12, 2024

Fix for issue #357

@sblunt
Copy link
Owner Author

sblunt commented Feb 27, 2024

The nbody code was throwing an indexing error when used in an MCMC run (issue #357). I fixed the error and added a unit test. I also made the choice of nbody backend integrator a keyword.

Copy link
Collaborator

@semaphoreP semaphoreP left a comment

Choose a reason for hiding this comment

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

Unit test looks good. I just have a couple questions on the docstring

orbitize/nbody.py Outdated Show resolved Hide resolved
orbitize/nbody.py Show resolved Hide resolved
@sblunt
Copy link
Owner Author

sblunt commented Apr 5, 2024

Thanks for catching the docstring errors. I updated it to be consistent with the way the function works.

@sblunt sblunt merged commit 0491dc4 into v3 Apr 10, 2024
7 of 8 checks passed
@sblunt sblunt deleted the rebound-indexing-bugfix branch April 10, 2024 19:51
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.

2 participants