test_clk module
Tests for Clk data loader.
- test_clk.fixture_clk_path(root_path)[source]
Filepath of valid .clk measurements
- Parameters:
root_path (string) – Folder location containing measurements
- Returns:
clk_path – String with location for the unit_test clk measurements
- Return type:
string
Notes
Downloaded the relevant .clk files from either CORS website [1] or CDDIS website [2]
References
- test_clk.fixture_clk_path_missing(root_path)[source]
Filepath of invalid/missing .clk measurements
- Parameters:
root_path (string) – Folder location containing measurements
- Returns:
clk_path_missing – String with location for the unit_test clk measurements
- Return type:
string
- test_clk.fixture_clk_path_nodata(root_path)[source]
Filepath for .clk measurements with no data
- Parameters:
root_path (string) – Folder location containing measurements
- Returns:
clk_path_nodata – String with location for the empty clk measurements
- Return type:
string
- test_clk.fixture_load_clkdata(clk_path)[source]
Load instance of clk data.
- Parameters:
clk_path (pytest.fixture) – String with location for the unit_test clk measurements
- Returns:
clkdata – Instances of Clk class for each satellite
- Return type:
list
- test_clk.test_clkgps_value_check(clkdata, prn, row_name, index, exp_value)[source]
Check Clk array entries of GPS constellation against known/expected values using test matrix
- Parameters:
clkdata (gnss_lib_py.parsers.clk.Clk) – CLK data.
prn (int) – Satellite PRN for test example
row_name (string) – Row key for test example
index (int) – Index to query data at
exp_value (float/datetime) – Expected value at queried indices