Skip to content

Commit 2c8d31b

Browse files
committed
NPI-4460 add baseline for SP3 offline sat removal
1 parent d1b1740 commit 2c8d31b

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

tests/test_sp3.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,6 +1269,9 @@ def test_sp3_offline_sat_removal_standalone(self):
12691269
Standalone test for remove_offline_sats() using manually constructed DataFrame to
12701270
avoid dependency on read_sp3()
12711271
"""
1272+
1273+
objects_to_verify: list = []
1274+
12721275
sp3_df_nans = TestSP3.get_example_dataframe("offline_sat_nan")
12731276
sp3_df_zeros = TestSP3.get_example_dataframe("offline_sat_zero")
12741277

@@ -1282,6 +1285,7 @@ def test_sp3_offline_sat_removal_standalone(self):
12821285
["G01", "G02", "G03"],
12831286
"Should start with 3 SVs",
12841287
)
1288+
objects_to_verify.extend([sp3_df_nans, sp3_df_zeros])
12851289

12861290
sp3_df_zeros_removed = sp3.remove_offline_sats(sp3_df_zeros)
12871291
sp3_df_nans_removed = sp3.remove_offline_sats(sp3_df_nans)
@@ -1297,6 +1301,13 @@ def test_sp3_offline_sat_removal_standalone(self):
12971301
"Should be two SVs after removing offline ones",
12981302
)
12991303

1304+
objects_to_verify.extend([sp3_df_zeros_removed, sp3_df_nans_removed])
1305+
1306+
# UnitTestBaseliner.mode = "baseline"
1307+
# UnitTestBaseliner.create_baseline(objects_to_verify) # DO NOT commit this line un-commented.
1308+
1309+
self.assertTrue(UnitTestBaseliner.verify(objects_to_verify), "Hash verification should pass")
1310+
13001311
def test_sp3_offline_sat_removal(self):
13011312
sp3_df = sp3.read_sp3(offline_sat_test_data, pOnly=False, strict_mode=STRICT_OFF)
13021313

Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5bf08cd846d30e3cf2bdb0a82c1c43822f49aae1f0f09354ffa9641f47dd4a4c

0 commit comments

Comments
 (0)