incorrect results for Observer rise transit set methods
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyEphem |
Fix Released
|
Medium
|
Brandon Rhodes |
Bug Description
specifically, for the moon:
>>> here = city('Chicago')
>>> mo = Moon(here)
>>> print here.date
2011/9/28 15:37:59
>>> print here.previous_
2011/9/28 13:16:51
>>> print here.previous_
2011/9/27 17:48:39
>>> print here.previous_
2011/9/26 22:55:34
>>> print here.next_
2011/9/28 13:16:51
>>> print here.next_
2011/9/28 18:44:54
>>> print here.next_
2011/9/29 00:04:11
previous and next rising are the same. previous and next setting skip a setting.
for myself, treating each rise, set and transit as a unit would make coding easier. that is, previous rise is the most recent rise event, and previous transit and set are its successive transit and set events, regardless of their relation to observer.date.
These could work like next_passing, returning a 6 part tuple (or a circumpolar or never rises error)