-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Getting "RuntimeWarning: invalid value encountered in double_scalars" in keplerlib.py #428
Comments
I started commenting out parts of the expression, and happily Trying instead the first half of the expression, I get the warning only if
My guess is that this formula only applies for closed, circular or elliptical orbits, but not for hyperbolic ones. @JoshPaterson wrote |
Well, that was pretty quick. I wound up copying and pasting a formula from the Wikipedia. Could you try installing Skyfield from master to see if it fixes your problem?
Thanks for any feedback you can provide! |
To test, I downloaded that zip file, opened up and dropped the new So I then ran the test over the full comet set from MPC, and got an exception out in
However the comet data which caused the exception was this:
So to test, use the original code at the top but swap out line |
That sounds like a quite separate issue, but while we're here, let's just re-open and continue with that new exception. I should be able to take a look in the next day or two! |
Drat, when I said "re-open" I meant that I was going to press the "Reopen" button right here so we could continue the conversation without your having to open a new issue. Then? I closed the tab and entirely forgot to accidentally press "Reopen". Thanks for opening the new issue! |
I’ll be able to take a look at this later tonight! |
Running the following code:
I am getting the following result:
I stepped into the function
true_anomaly
and the parameterE
is0.0
...not sure where to go from here!The text was updated successfully, but these errors were encountered: