From 189481692c57496e0542a400ea62a9356024e84c Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Sat, 26 Sep 2020 14:22:10 +0300 Subject: Set defalt altitude at 0 --- iss/predictions.py | 2 +- iss/tests/test_predictions.py | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/iss/predictions.py b/iss/predictions.py index f569f7d..29bcf2c 100644 --- a/iss/predictions.py +++ b/iss/predictions.py @@ -12,7 +12,7 @@ class Predictions(object): self, lat, lng, - altitude=30.0, + altitude=0, tz="UTC", satellite=ISS, start=None, diff --git a/iss/tests/test_predictions.py b/iss/tests/test_predictions.py index 9dd5f2b..85dcf0a 100644 --- a/iss/tests/test_predictions.py +++ b/iss/tests/test_predictions.py @@ -37,9 +37,9 @@ def test_get_prediction_events(): lat=32.0853, lng=34.7817, tz="Asia/Jerusalem", start=start, tle_file=STATIONS ) preds = p.get_prediction_events() - assert len(preds) == 16 + assert len(preds) == 77 preds = [[t.ut1 for t in pred] for pred in preds] - assert preds[0] == [2459117.396875682, 2459117.39787489, 2459117.3988819383] + assert preds[0] == [2459117.2606565966, 2459117.2618780565, 2459117.2631023712] p = Predictions( lat=32.0853, @@ -60,8 +60,8 @@ def test_get_predictions(): lat=32.0853, lng=34.7817, tz="Asia/Jerusalem", start=start, tle_file=STATIONS ) preds = p.get_predictions() - assert len(preds) == 16 - assert preds[0]["rise"]["time"] == "2020-09-24T21:31:31Z" - assert preds[0]["rise"]["azimuth"] == 332 - assert preds[0]["culminate"]["degrees"] == 61 - assert preds[0]["set"]["distance"] == 779 + assert len(preds) == 77 + assert preds[0]["rise"]["time"] == "2020-09-24T18:15:22Z" + assert preds[0]["rise"]["azimuth"] == 347 + assert preds[0]["culminate"]["degrees"] == 1 + assert preds[0]["set"]["distance"] == 2364 -- cgit v1.3.1