Skip to content

Commit 42b2e20

Browse files
committed
Merge branch 'main' into derwin/ephemeris
2 parents 75029c2 + 3979c39 commit 42b2e20

5 files changed

Lines changed: 18 additions & 15 deletions

File tree

build_docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ poetry run make clean
2626
echo "Building docs in html"
2727
poetry run make html
2828

29-
# export requirements.txt for setup.py
29+
# export requirements.txt for Conda environment setup
3030
cd ..
3131
poetry export -f requirements.txt --output ./requirements.txt --without-hashes

docs/source/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Editable Installation
5353
5454
python -m pip install -U pip
5555
56-
4. Install :code:`gnss_lib_py` locally from directory containing :code:`setup.py`
56+
4. Install :code:`gnss_lib_py` locally from directory containing :code:`pyproject.toml`
5757

5858
.. code-block:: bash
5959

gnss_lib_py/parsers/rinex_obs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ class RinexObs(NavData):
2020
measurements from different bands are treated as separate measurement
2121
instances. Inherits from NavData().
2222
23+
This class has primarily been built with Rinex v3.05 in mind but it
24+
should also work for prior Rinex versions.
25+
2326
2427
References
2528
----------

notebooks/tutorials/parsers.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@
406406
"id": "fe8e8d6a",
407407
"metadata": {},
408408
"source": [
409-
"## Rinex v3 Observation File Parsing"
409+
"# Rinex Observation File Parsing"
410410
]
411411
},
412412
{
@@ -417,8 +417,8 @@
417417
"Rinex is another file standard that is used in the GNSS community to store and transmit navigation information.\n",
418418
"Files with the extension `.yyo`, where `yy` is the year in which the measurement was made, are used to store and transmit\n",
419419
"measurements.\n",
420-
"These measurements files can any constellation and each measurement usually contains the pseudorange, carrier phase (or difference from carrier frequency),\n",
421-
"doppler, and signal-to-noise ration measurements.\n",
420+
"These measurement files can contain any constellation and each measurement usually contains the pseudorange, carrier phase (or difference from carrier frequency),\n",
421+
"doppler, and signal-to-noise ratio measurements.\n",
422422
"In the following lines, we show how to load a ``.o`` file into a NavData instance."
423423
]
424424
},
@@ -430,8 +430,8 @@
430430
"outputs": [],
431431
"source": [
432432
"# download Rinex obs file and load it into NavData instance\n",
433-
"!wget https://raw.githubusercontent.com/Stanford-NavLab/gnss_lib_py/ashwin/rinex-3-o/data/unit_test/rinex/obs/rinex_obs_mixed_types.20o --quiet -O \"rinex_obs_mixed_types.20o\"\n",
434-
"rinex_obs_3 = glp.RinexObs3(\"rinex_obs_mixed_types.20o\")\n",
433+
"!wget https://raw.githubusercontent.com/Stanford-NavLab/gnss_lib_py/main/data/unit_test/rinex/obs/rinex_obs_mixed_types.20o --quiet -O \"rinex_obs_mixed_types.20o\"\n",
434+
"rinex_obs_3 = glp.RinexObs(\"rinex_obs_mixed_types.20o\")\n",
435435
"print('Loaded Rinex Obs 3 data for the first time instant\\n', \\\n",
436436
" rinex_obs_3.where('gps_millis', rinex_obs_3['gps_millis', 0], 'eq'))"
437437
]

tests/parsers/test_rinex_obs.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
import pytest
1111
import numpy as np
12-
1312
from pytest_lazyfixture import lazy_fixture
13+
1414
from gnss_lib_py.parsers.rinex_obs import RinexObs
1515

1616
@pytest.fixture(name="root_path")
@@ -104,7 +104,7 @@ def fixture_single_compare():
104104
105105
Returns
106106
-------
107-
single_compare : list
107+
single_exp_values : list
108108
List of time instance, row names, gnss_sv_id and expected values
109109
for single case.
110110
"""
@@ -124,7 +124,7 @@ def test_rinex_obs_3_load_single(rinex_single_values, single_exp_values):
124124
rinex_single_values : gnss_lib_py.parsers.rinex_obs.RinexObs
125125
Instance of RinexObs class with data loaded from appropriate
126126
file.
127-
compare_values : list
127+
single_exp_values : list
128128
List of lists containing time instance, gnss_sv_id, and expected
129129
value for different
130130
Rinex use cases.
@@ -149,10 +149,10 @@ def test_rinex_obs_3_load_mixed(rinex_mixed_values, mixed_exp_values):
149149
150150
Parameters
151151
----------
152-
rinex_navdata : gnss_lib_py.parsers.rinex_obs.RinexObs
152+
rinex_mixed_values : gnss_lib_py.parsers.rinex_obs.RinexObs
153153
Instance of RinexObs class with data loaded from appropriate
154154
file.
155-
compare_values : list
155+
mixed_exp_values : list
156156
List of indices and values to compare against.
157157
"""
158158
count = 0
@@ -175,7 +175,7 @@ def fixture_sats_per_time_single():
175175
176176
Returns
177177
-------
178-
sats_per_time : list
178+
sats_per_time_single : list
179179
List of number of satellites that are present at each time step.
180180
"""
181181
sats_per_time_single = [25, 24, 24]
@@ -188,7 +188,7 @@ def fixture_sats_per_time_mixed():
188188
189189
Returns
190190
-------
191-
sats_per_time : list
191+
sats_per_time_mixed : list
192192
List of number of satellites that are present at each time step.
193193
"""
194194
sats_per_time_mixed = [25, 25, 26, 26, 24]
@@ -242,4 +242,4 @@ def test_rinex_obs_3_fails(rinex_mixed_values):
242242
assert len(sv_not_rx) == 0
243243
if count == 1:
244244
sv_not_pseudo = rinex_frame.where('gnss_sv_id', 'G29', 'eq')
245-
assert len(sv_not_pseudo) == 0
245+
assert len(sv_not_pseudo) == 0

0 commit comments

Comments
 (0)