mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-03-31 21:03:42 -04:00
Fix PR reviews
This commit is contained in:
@@ -1454,7 +1454,7 @@ body to arrive at the observer at the observation time.
|
||||
---
|
||||
|
||||
<a name="DefineStar"></a>
|
||||
### DefineStar(body: astronomy.Body, ra: float, dec: float, distanceLightYears: float)
|
||||
### DefineStar(body: astronomy.Body, ra: float, dec: float, distanceLightYears: float) -> None
|
||||
|
||||
**Assign equatorial coordinates to a user-defined star.**
|
||||
|
||||
@@ -2238,7 +2238,7 @@ Then call `NextMoonNode` to find as many more consecutive nodes as desired.
|
||||
---
|
||||
|
||||
<a name="NextMoonQuarter"></a>
|
||||
### NextMoonQuarter(mq: astronomy.MoonQuarter)
|
||||
### NextMoonQuarter(mq: astronomy.MoonQuarter) -> astronomy.MoonQuarter
|
||||
|
||||
**Continues searching for lunar quarters from a previous search.**
|
||||
|
||||
@@ -3166,7 +3166,7 @@ This function is useful for finding general phase angles outside those four quar
|
||||
---
|
||||
|
||||
<a name="SearchMoonQuarter"></a>
|
||||
### SearchMoonQuarter(startTime: astronomy.Time)
|
||||
### SearchMoonQuarter(startTime: astronomy.Time) -> astronomy.MoonQuarter
|
||||
|
||||
**Finds the first lunar quarter after the specified date and time.**
|
||||
|
||||
@@ -3466,7 +3466,7 @@ The ecliptic coordinates of the Sun using the Earth's true equator of date.
|
||||
---
|
||||
|
||||
<a name="VectorFromHorizon"></a>
|
||||
### VectorFromHorizon(sphere: astronomy.Spherical, time: astronomy.Time, refraction: astronomy.Refraction)
|
||||
### VectorFromHorizon(sphere: astronomy.Spherical, time: astronomy.Time, refraction: astronomy.Refraction) -> astronomy.Vector
|
||||
|
||||
**Given apparent angular horizontal coordinates in `sphere`, calculate horizontal vector.**
|
||||
|
||||
|
||||
@@ -374,7 +374,7 @@ def _UserDefinedStar(body):
|
||||
return star
|
||||
return None
|
||||
|
||||
def DefineStar(body: Body, ra: float, dec: float, distanceLightYears: float):
|
||||
def DefineStar(body: Body, ra: float, dec: float, distanceLightYears: float) -> None:
|
||||
"""Assign equatorial coordinates to a user-defined star.
|
||||
|
||||
Some Astronomy Engine functions allow their `body` parameter to
|
||||
@@ -5666,7 +5666,7 @@ class MoonQuarter:
|
||||
def __repr__(self):
|
||||
return 'MoonQuarter({}, {})'.format(self.quarter, repr(self.time))
|
||||
|
||||
def SearchMoonQuarter(startTime: Time):
|
||||
def SearchMoonQuarter(startTime: Time) -> MoonQuarter:
|
||||
"""Finds the first lunar quarter after the specified date and time.
|
||||
|
||||
A lunar quarter is one of the following four lunar phase events:
|
||||
@@ -5694,7 +5694,7 @@ def SearchMoonQuarter(startTime: Time):
|
||||
raise InternalError()
|
||||
return MoonQuarter(quarter, time)
|
||||
|
||||
def NextMoonQuarter(mq: MoonQuarter):
|
||||
def NextMoonQuarter(mq: MoonQuarter) -> MoonQuarter:
|
||||
"""Continues searching for lunar quarters from a previous search.
|
||||
|
||||
After calling #SearchMoonQuarter, this function can be called
|
||||
@@ -7018,7 +7018,7 @@ def _ToggleAzimuthDirection(az):
|
||||
return az
|
||||
|
||||
|
||||
def VectorFromHorizon(sphere: Spherical, time: Time, refraction: Refraction):
|
||||
def VectorFromHorizon(sphere: Spherical, time: Time, refraction: Refraction) -> Vector:
|
||||
"""Given apparent angular horizontal coordinates in `sphere`, calculate horizontal vector.
|
||||
|
||||
Parameters
|
||||
|
||||
Reference in New Issue
Block a user