diff options
| author | Yuval Adam <_@yuv.al> | 2020-09-23 17:58:06 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2020-09-23 17:58:32 +0300 |
| commit | a1aeb3d7f47522b6f1e33cc0a6391edffb4e4937 (patch) | |
| tree | 3425841740f22d3b5f5a61fbd80278496189c937 /iss | |
| parent | e9942559847d46face3ee0763c875a625abb4c2a (diff) | |
Add lint and formatting tools
Diffstat (limited to 'iss')
| -rw-r--r-- | iss/predictions.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/iss/predictions.py b/iss/predictions.py index 37e23e6..1f34a19 100644 --- a/iss/predictions.py +++ b/iss/predictions.py @@ -1,11 +1,10 @@ from skyfield.api import Topos, load -TEL_AVIV = Topos('32.0853 N', '34.7817 E') +TEL_AVIV = Topos("32.0853 N", "34.7817 E") ISS = "ISS (ZARYA)" class Predictions(object): - def __init__(self, lat, lng, tz="UTC", satellite=ISS): self.lat = lat self.lng = lng @@ -13,7 +12,7 @@ class Predictions(object): self.satellite = satellite def init_stations(self): - stations_url = 'http://celestrak.com/NORAD/elements/stations.txt' + stations_url = "http://celestrak.com/NORAD/elements/stations.txt" return load.tle_file(stations_url) def get_next_days_timescale(self, days=10): @@ -33,5 +32,5 @@ class Predictions(object): print(t) print(events) for ti, event in zip(t, events): - name = ('rise above 30°', 'culminate', 'set below 30°')[event] - print(ti.utc_strftime('%Y %b %d %H:%M:%S'), name) + name = ("rise above 30°", "culminate", "set below 30°")[event] + print(ti.utc_strftime("%Y %b %d %H:%M:%S"), name) |
