-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add orbit dynamics calculations #325
Add orbit dynamics calculations #325
Conversation
Hello @jianyangli! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2022-05-19 21:47:17 UTC |
I compared the numbers against references, but @mkelley can you check my implementation of the formula, especially for d_criterion, to make sure they are correct. Thanks. |
Yes, it would be good to include different versions of |
OK, Thanks @Yeqzids . I will add the other versions. |
@mkelley , I have a question for you. After implementing all three versions of D-criterion, I added all three references, Southworth & Hawkins 1963, Drummond 1981, and Jopek 1993 to bib track. But ideally, we only want to track the original reference for each corresponding version of D. E.g., if |
Move the bib tracking calls to inside the method and place each within the their respective if-statement blocks. |
@mkelley Is this bib tracking implementation OK? Thanks. |
Yes, I think this is right. |
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.
After those last two comments, I think this is good!
* Change `.d_criterion` to `.D_criterion` * Change reference for `D_criterion`, and add a reference section to docstring * Improve examples
* Add tests of D-criterion against Table 1 of Jopek 1993 * Add remote test for Tisserand parameter using the same epoch as JPL SBDB values
* Include Drummond function and hybrid function (Jopek 1993). * Update examples
Default to Jupiter Tisserand parameter
e3e22fd
to
62e2d96
Compare
@mkelley I rebased this branch to merge, but then the read the docs build failed. I don't understand the error and can't find any problem with my local tests: /home/docs/checkouts/readthedocs.org/user_builds/sbpy/envs/325/lib/python3.9/site-packages/sbpy/data/orbit.py:docstring of sbpy.data.orbit.Orbit.D_criterion:36: ERROR: Unexpected indentation. Do you know what's the problem? Thanks. |
I can't reproduce it either. Could it be the blank line on 818? Or the spaces before ")" on 817? |
Lines 815 - 817 are now identical to lines 757 - 759, but the latter passed with no problem. I also removed the blank line following these lines, no luck either. Since this is not a required test, should we just go ahead and merge, and diagnose the problem later? I doubt it's a problem associated with the code. |
@jianyangli Got it! I tested this out on a separate branch and found that the error is due to the indentation on lines 807 - 809. Try reformatting the 'References' section to avoid this indentation. |
Oh, and please add a CHANGELOG entry for these new features. |
Thank you @mkelley ! It took me some commits to fix all the bugs and citations in the docstrings, but glad it finally worked. |
Looks great! |
Add
tisserand
andd_criterion
methods toOrbit
class.