summaryrefslogtreecommitdiff
path: root/iss
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2020-09-24 22:29:36 +0300
committerYuval Adam <_@yuv.al>2020-09-24 22:29:36 +0300
commit78099db917289a3100ea0ee7558da5627582fc6f (patch)
tree61f2632d25ae670a881f7ff7529cd64b6e1a5a78 /iss
parent5225a7263341308c3ec7429f8275afb34134a831 (diff)
Rename get_prediction_events()
Diffstat (limited to 'iss')
-rw-r--r--iss/predictions.py2
-rw-r--r--iss/tests/test_predictions.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/iss/predictions.py b/iss/predictions.py
index 9f5023d..eb02ef9 100644
--- a/iss/predictions.py
+++ b/iss/predictions.py
@@ -45,7 +45,7 @@ class Predictions(object):
by_name = {sat.name: sat for sat in satellites}
return by_name[self.satellite]
- def get_predictions(self):
+ def get_prediction_events(self):
satellite = self.get_satellite()
t0, t1 = self.get_next_days()
location = self.get_location()
diff --git a/iss/tests/test_predictions.py b/iss/tests/test_predictions.py
index 4c55f5b..035ab9a 100644
--- a/iss/tests/test_predictions.py
+++ b/iss/tests/test_predictions.py
@@ -36,7 +36,7 @@ def test_get_predictions():
p = Predictions(
lat=32.0853, lng=34.7817, tz="Asia/Jerusalem", start=start, tle_file=STATIONS
)
- preds = p.get_predictions()
+ preds = p.get_prediction_events()
assert len(preds) == 16
assert preds[0] == [
"2020-09-24T21:31:31Z",
@@ -53,5 +53,5 @@ def test_get_predictions():
days=5,
tle_file=STATIONS,
)
- preds = p.get_predictions()
+ preds = p.get_prediction_events()
assert len(preds) == 39