-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Change in almanac.find_discrete logic #339
Comments
Alas! All my own code looks at times before looking at
— then you should find the problem fixed. Please re-open this issue if not! I will hopefully release a new Skyfield version in a couple of days that includes the fix. |
Many thanks for the fast fix - agreed, the problem is fixed in the repository :-) I was updating my six Repositories on GitHub. I have three versions (each in a Python2 and Python3 variant) that demonstrate my efforts using PyEphem and Skyfield:
I would be happy if you take a look yourself at what I've done because it's all based on your hard work. Note that my Nautical Almanacs (the original I forked from Enno Rodegerdts) are published on The Nautical Almanac. These are one version ahead of my GitHub site (they include an image of the moon phase - done with the tikz package). I'm happy to see that I'm slowly beginning to collect some stars in GitHub :-) |
My Skyfield code was working happily until recently - however I can't pinpoint what changed as previous versions of Skyfield, e.g. 1.15, now also exhibit this (incorrect IMHO) symptom.
The problem is seen only when there is no moonrise or moonset on a particular day at a specific latitude. Take for example 16th. and 17th. February 2020 (Sunday and Monday). I calculated these times:
At latitude 72° N you see a moonrise (05:13) and set (07:02) on Sunday; and none on Monday. Skyfield gives me now this data:
And my complaint is why are there 24 moonsets on Monday (24 x False) ?
The zero moonrise/set event times is correct!
Previously the tuple returned by find_discrete had the same number of elements in each array (event times; event type). And the bug in my code is that I was looking at the number of items in the "event type" array - now 24 moonsets on Monday 02/17/2020 at 72°N.
The code to reproduce this is here:
Can we return to the "clean" situation where we have zero event times and zero event types on Monday?
The text was updated successfully, but these errors were encountered: