astronomy: Transpose definition of twilight start and end.

master
Peter Hinch 2023-12-17 08:47:51 +00:00
rodzic f9107de893
commit b4aae38fc4
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -140,8 +140,8 @@ instance.
* `sunset(variant: int = 0)`
* `moonrise(variant: int = 0)`
* `moonset(variant: int = 0)`
* `tstart(variant: int = 0)` Twilight start
* `tend(variant: int = 0)` Twilight end
* `tstart(variant: int = 0)` Twilight start, Sun about to rise.
* `tend(variant: int = 0)` Twilight end, (Sun has set).
* `is_up(sun: bool)-> bool` Returns `True` if the selected object is above the
horizon.
* `has_risen(sun: bool)->bool` Returns `True` if the selected object has risen.

Wyświetl plik

@ -249,10 +249,10 @@ class RiSet:
def moonset(self, variant: int = 0):
return self._format(self._times[3], variant)
def tend(self, variant: int = 0):
def tstart(self, variant: int = 0):
return self._format(self._times[4], variant)
def tstart(self, variant: int = 0):
def tend(self, variant: int = 0):
return self._format(self._times[5], variant)
def moonphase(self) -> float: