Skip to content

Commit

Permalink
Merge pull request #1 from nsat/master
Browse files Browse the repository at this point in the history
Update test TLE to avoid unit test failure (nsat#58)
  • Loading branch information
hefnawi7 authored Apr 11, 2023
2 parents 45ed442 + 89b8c01 commit 4a943b7
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ help:
@echo " clean: Removes distribution folders and artifacts from building"
@echo " build: Builds source and wheel distributions"
@echo " upload: Uploads built source and wheel distributions to repository"
@echo " Requires env vars `REPO`, `USER`, `PASSWORD`"
@echo " Requires env vars REPO, USER, PASSWORD"

.PHONY: clean
clean:
Expand Down
8 changes: 4 additions & 4 deletions test_predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

TLE = (
"0 ISS (ZARYA)\n"
"1 25544U 98067A 22032.20725753 .00005492 00000-0 10513-3 0 9993\n"
"2 25544 51.6448 289.9951 0006763 85.5907 19.0087 15.49721935324098"
"1 25544U 98067A 23096.18845088 .00017407 00000-0 31715-3 0 9991\n"
"2 25544 51.6431 325.2993 0006862 159.1562 289.0392 15.49543408390622"
)
QTH = (0.033889, 51.066389, 0.0) # Macapa, Brazil
T1_IN_TRANSIT = 1643723400 # 2022-02-01T13:50:00Z
T2_NOT_IN_TRANSIT = 1643720700 # 2022-02-01T13:05:00Z
T1_IN_TRANSIT = 1680782200 # 2023-04-06T11:56:40Z
T2_NOT_IN_TRANSIT = 1680783900 # 2023-04-06T12:25:00Z


def test_transits_are_truncated_if_the_overlap_the_start_or_end_times():
Expand Down
47 changes: 24 additions & 23 deletions test_predict_above.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,38 @@

TLE = (
"0 ISS (ZARYA)\n"
"1 25544U 98067A 22032.20725753 .00005492 00000-0 10513-3 0 9993\n"
"2 25544 51.6448 289.9951 0006763 85.5907 19.0087 15.49721935324098"
"1 25544U 98067A 23096.18845088 .00017407 00000-0 31715-3 0 9991\n"
"2 25544 51.6431 325.2993 0006862 159.1562 289.0392 15.49543408390622"
)
QTH = (0.033889, 51.066389, 0.0) # Macapa, Brazil

ENDING_AFTER = 1643720700 # 2022-02-01T13:05:00Z
ENDING_BEFORE = 1644325500 # 2022-02-08T13:05:00Z
ENDING_AFTER = 1680782200 # 2023-04-06T11:56:40Z
ENDING_BEFORE = 1681387000 # 2023-04-13T11:56:40Z

MIN_ELEVATION = 10
MIN_DURATION = 1

TRANSITS_REF = [
{"start": 1643723116.22434, "end": 1643723516.987234},
{"start": 1643764874.083364, "end": 1643765265.3938956},
{"start": 1643806649.5753431, "end": 1643807015.1396928},
{"start": 1643848426.4339318, "end": 1643848743.1023502},
{"start": 1643854302.3515873, "end": 1643854454.722202},
{"start": 1643890227.7005908, "end": 1643890465.3432565},
{"start": 1643896002.9880626, "end": 1643896277.0759523},
{"start": 1643937721.9717846, "end": 1643938061.8765898},
{"start": 1643979464.7059774, "end": 1643979842.7585597},
{"start": 1644021207.4925222, "end": 1644021604.0888827},
{"start": 1644062967.0657983, "end": 1644063368.0047994},
{"start": 1644104726.0510883, "end": 1644105112.630568},
{"start": 1644146501.024817, "end": 1644146860.137256},
{"start": 1644188280.245481, "end": 1644188583.2041698},
{"start": 1644194133.3048844, "end": 1644194316.9549828},
{"start": 1644230083.899797, "end": 1644230299.963708},
{"start": 1644235839.9425225, "end": 1644236130.7524247},
{"start": 1644277562.037712, "end": 1644277910.0568247},
{"start": 1644319304.5025349, "end": 1644319688.5155852},
{"start": 1680781759.5005624, "end": 1680782160.6740706},
{"start": 1680823531.4431722, "end": 1680823906.632853},
{"start": 1680865311.7306323, "end": 1680865657.2993975},
{"start": 1680907105.8399603, "end": 1680907378.5976427},
{"start": 1680912921.9732332, "end": 1680913150.2145195},
{"start": 1680948922.5879023, "end": 1680949089.099553},
{"start": 1680954640.4831667, "end": 1680954960.0576594},
{"start": 1680996376.7773402, "end": 1680996737.0890093},
{"start": 1681038123.311641, "end": 1681038517.6482813},
{"start": 1681079878.0165846, "end": 1681080275.4995687},
{"start": 1681121639.6387215, "end": 1681122038.876846},
{"start": 1681163409.6062121, "end": 1681163779.7993734},
{"start": 1681205187.1739054, "end": 1681205524.298174},
{"start": 1681211103.2199135, "end": 1681211196.8242755},
{"start": 1681246981.065788, "end": 1681247238.721029},
{"start": 1681252780.5639017, "end": 1681253025.8338327},
{"start": 1681288803.5887175, "end": 1681288934.4458292},
{"start": 1681294498.2477252, "end": 1681294827.8092008},
{"start": 1681336233.208954, "end": 1681336599.2881413},
{"start": 1681377976.8515246, "end": 1681378373.9713566},
]

TOLERANCE = 0.1
Expand Down

0 comments on commit 4a943b7

Please sign in to comment.