-
Notifications
You must be signed in to change notification settings - Fork 121
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
Endless loop in computing moon rise/set #232
Comments
If you could provide a complete test script which reproduces the issue, that would help to start diagnosing... |
Here is a sample script. Please note that I am using
|
I commented out the last section of your script which referred to
Your script contains no |
Yes, using an example including pylunar makes it much easier for me to generate a reproducible test case. https://github.com/mareuter/pylunar/blob/master/pylunar/moon_info.py#L397 Are you able to install |
Done using
Next step I'd suggest is to isolate: is the issue in |
Thanks - as you can see, when you hit CTRL + C, the line where the endless loop occurs is in |
Not sure if your development environment has a debugger, but that could be the next step; maybe see what happens inside of |
Problem verified... A user has raised an issue regarding an endless loop using Skyalmanac, which uses Ephem for moonrise/moonset times. The same happens in Pyalmanac (which only uses Ephem). For example, this error appears in the Nautical Almanac when calculating between 23.06.2020 and 25.06.2020 inclusive. I do not have this error with Ephem 4.1 (installed on my PC). It hangs in versions 4.1.1, 4.1.2 and 4.1.3 (installed on my laptop). I'll try to give more specific details (with further testing). |
Here is a minimal test case that loops forever when using Ephem >= 4.1.1 ....
I hope this is useful to you. |
I also ran into this issue using version 4.1.3 at high latitudes.
The following hangs:
The following does not get stuck in a loop, but does NOT return the right answer:
|
I can confirm that the problem still exist in 4.1.6.. |
I am using
ephem==4.1.3
together withpylunar==0.6.0
. When trying to compute moon rise and set times in Norway, ephem hangs in an endless loop.Stacktrace from a test run:
The text was updated successfully, but these errors were encountered: