summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2020-09-26 14:22:10 +0300
committerYuval Adam <_@yuv.al>2020-09-26 14:22:10 +0300
commit189481692c57496e0542a400ea62a9356024e84c (patch)
tree21fa296d480dee73d0789f3c0142e66ea6b33305
parent3ad1589a4c01d00af761a53eafbd3010ce168fb3 (diff)
Set defalt altitude at 0
-rw-r--r--iss/predictions.py2
-rw-r--r--iss/tests/test_predictions.py14
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