mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-03-05 07:07:45 -05:00
Python: Added MoonPhase test. Fixed errors.
This commit is contained in:
@@ -2159,14 +2159,14 @@ def EclipticLongitude(body, time):
|
||||
return eclip.elon
|
||||
|
||||
def AngleFromSun(body, time):
|
||||
if body == EARTH:
|
||||
if body == BODY_EARTH:
|
||||
raise EarthNotAllowedError()
|
||||
sv = GeoVector(BODY_SUN, time, True)
|
||||
bv = GeoVector(body, time, True)
|
||||
return _AngleBetween(sv, bv)
|
||||
|
||||
def LongitudeFromSun(body, time):
|
||||
if body == EARTH:
|
||||
if body == BODY_EARTH:
|
||||
raise EarthNotAllowedError()
|
||||
sv = GeoVector(BODY_SUN, time, True)
|
||||
se = Ecliptic(sv)
|
||||
|
||||
Reference in New Issue
Block a user