Phase of Moon calculation is wrong by more than a week
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
astral |
Fix Released
|
High
|
Simon Kennedy |
Bug Description
According to the U.S. Naval Observatory, the Full moon was either January 4 or 5, 2015
But my test using astral.py gives the phase of the moon as 23 instead of 14 or 15
http://
http://
Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>>
>>> import datetime
>>> from pytz import timezone
>>> from astral import Astral
>>>
>>> a = Astral()
>>> city = a['Seattle']
>>>
>>> date = datetime.date( 2015,01,05 )
>>>
>>> print( 'Phase of moon: %d' % city.moon_phase( date ) )
Phase of moon: 23
>>>
Changed in astral: | |
status: | New → In Progress |
assignee: | nobody → Simon Kennedy (sffjunkie) |
importance: | Undecided → High |
Changed in astral: | |
status: | In Progress → Fix Committed |
Changed in astral: | |
status: | Fix Committed → Fix Released |