test_android module
Tests for Android raw data loaders.
- test_android.fixture_derived_2023_path(root_path)[source]
Filepath of Android derived measurements
- Parameters:
root_path (string) – Path of testing dataset root path
- Returns:
raw_path – Location for text log file with Android Raw measurements
- Return type:
string
Notes
Test data is a subset of the 2023 Google Challenge [4].
References
- test_android.fixture_pixel6_raw_path(root_path)[source]
Filepath of Android Raw measurements
- Parameters:
root_path (string) – Path of testing dataset root path
- Returns:
raw_path – Location for text log file with Android Raw measurements
- Return type:
string
- test_android.fixture_raw_2023_path(root_path)[source]
Filepath of Android Raw measurements
- Parameters:
root_path (string) – Path of testing dataset root path
- Returns:
raw_path – Location for text log file with Android Raw measurements
- Return type:
string
Notes
Test data is a subset of the 2023 Google Challenge [3].
References
[3] https://www.kaggle.com/competitions/smartphone-decimeter-2023/overview
- test_android.fixture_raw_path(root_path)[source]
Filepath of Android Raw measurements
- Parameters:
root_path (string) – Path of testing dataset root path
- Returns:
raw_path – Location for text log file with Android Raw measurements
- Return type:
string
Notes
Test data is a subset of the Android Raw Measurement Dataset [2], particularly the train/2020-05-14-US-MTV-1/Pixel4 trace. The dataset was retrieved from https://www.kaggle.com/c/google-smartphone-decimeter-challenge/data
References
[2] Fu, Guoyu Michael, Mohammed Khider, and Frank van Diggelen. “Android Raw GNSS Measurement Datasets for Precise Positioning.” Proceedings of the 33rd International Technical Meeting of the Satellite Division of The Institute of Navigation (ION GNSS+ 2020). 2020.
- test_android.fixture_sensors_raw_path(root_path)[source]
Filepath of Android Raw measurements
- Parameters:
root_path (string) – Path of testing dataset root path
- Returns:
raw_path – Location for text log file with Android Raw measurements
- Return type:
string
- test_android.make_csv(input_path, output_directory, field, show_path=False)[source]
Write specific data types from a GNSS android log to a CSV.
- Parameters:
input_path (string or path-like) – File location of data file to read.
output_directory (string) – Directory where new csv file should be created
field (list of strings) – Type of data to extract. Valid options are either “Raw”, “Accel”, “Gyro”, “Mag”, or “Fix”.
show_path (bool) – If true, prints output path.
- Returns:
output_path – New file location of the exported CSV.
- Return type:
string
Notes
Based off of MATLAB code from Google’s gps-measurement-tools repository: https://github.com/google/gps-measurement-tools. Compare with MakeCsv() in opensource/ReadGnssLogger.m
- test_android.test_csv_equivalence(android_raw_path, root_path, file_type)[source]
Test equivalence of loaded measurements and data from split csv
- Parameters:
android_raw_path (pytest.fixture) – Path to Android Raw measurements text log file
root_path (pytest.fixture) – Path to location of all data for Android unit testing
file_type (string) – Type of measurement to be extracted into csv files
- test_android.test_fix_raw(android_raw_path)[source]
Test that AndroidRawFixes initialization
- Parameters:
android_raw_path (pytest.fixture) – Path to Android Raw measurements text log file
- test_android.test_raw_filters(root_path)[source]
Test all the different measurement filter varieties.
- Parameters:
root_path (string) – Path of testing dataset root path
- test_android.test_raw_load(android_raw_2023_path, android_derived_2023_path)[source]
Test basic loading of android raw file.
- Parameters:
android_raw_2023_path (string) – Location for text log file with Android Raw measurements.
android_derived_2023_path (string) – Location for text log file with Android derived measurements.