Sfoglia il codice sorgente

fix: remove Mercury and Venus opposition

tags/v0.6.2
Jérôme Deuchnord 5 anni fa
parent
commit
1b4c499127
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: BC6F3C345B7D33B0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      kosmorrolib/events.py

+ 1
- 1
kosmorrolib/events.py Vedi File

@@ -80,7 +80,7 @@ def _search_oppositions(start_time: Time, end_time: Time) -> [Event]:
events = []

for aster in ASTERS:
if not isinstance(aster, Planet) or aster.name in ['Mercury', 'Venus']:
if not isinstance(aster, Planet) or aster.skyfield_name in ['MERCURY', 'VENUS']:
continue

times, _ = find_discrete(start_time, end_time, is_oppositing)


Caricamento…
Annulla
Salva