Skip to content

Commit c734be6

Browse files
committed
update installation steps
1 parent b2c64b8 commit c734be6

2 files changed

Lines changed: 28 additions & 14 deletions

File tree

docs/source/install.rst

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,27 @@ Install
66
Prerequisites
77
-------------
88

9-
:code:`gnss_lib_py` is written in Python and requires basic familiarity
10-
with Python classes, functions and associated syntax.
9+
| **Python:** >=3.8, <3.11
10+
| **Operating System:** Ubuntu, Windows, MacOS
1111
12-
:code:`gnss_lib_py` is developed in Python 3.8.9 in Ubuntu 20 and
13-
Ubuntu 20 for WSL2.
1412
All :code:`gnss_lib_py` classes and methods are tested in Python 3.8
1513
and 3.10 in the latest Ubuntu, MacOS and Windows versions.
14+
:code:`gnss_lib_py` is developed in Python 3.8.9 in Ubuntu 20/22 and
15+
Ubuntu 20 for WSL2.
1616

1717
Standard Installation
1818
---------------------
1919

20+
1. :code:`gnss_lib_py` is available through :code:`pip` installation
21+
with:
22+
23+
.. code-block:: bash
24+
25+
pip install gnss-lib-py
26+
27+
Editable Installation
28+
---------------------
29+
2030
1. Clone the GitHub repository:
2131

2232
.. code-block:: bash

tests/parsers/test_android.py

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -197,18 +197,22 @@ def test_derived_df_equivalence(derived_path, pd_df, derived_row_map):
197197
derived = android.AndroidDerived2021(derived_path,
198198
remove_timing_outliers=False)
199199
measure_df = derived.pandas_df()
200-
constellation_map = {0.:"unkown",
201-
1.:"gps",
202-
2.:"sbas",
203-
3.:"glonass",
204-
4.:"qzss",
205-
5.:"beidou",
206-
6.:"galileo",
207-
7.:"irnss",
208-
}
209200
measure_df.replace({'gnss_id',"gps"},1,inplace=True)
210201
measure_df.replace({'gnss_id',"glonass"},3,inplace=True)
211202
measure_df.replace({'gnss_id',"galileo"},6,inplace=True)
203+
signal_map = {"GPS_L1" : "l1",
204+
"GPS_L5" : "l5",
205+
"GAL_E1" : "e1",
206+
"GAL_E5A" : "e5a",
207+
"GLO_G1" : "g1",
208+
"QZS_J1" : "j1",
209+
"QZS_J5" : "j5",
210+
"BDS_B1I" : "b1i",
211+
"BDS_B1C" : "b1c",
212+
"BDS_B2A" : "b2a",
213+
}
214+
for s_key, s_value in signal_map.items():
215+
measure_df.replace({'signal_type',s_value},s_key,inplace=True)
212216
measure_df.rename(columns=derived_row_map, inplace=True)
213217
measure_df = measure_df.drop(columns='corr_pr_m')
214218
pd.testing.assert_frame_equal(pd_df.sort_index(axis=1),
@@ -225,7 +229,7 @@ def test_derived_df_equivalence(derived_path, pd_df, derived_row_map):
225229
('vz_sv_mps', 0, 3559.812),
226230
('b_dot_sv_mps', 0, 0.001),
227231
('signal_type', 0,
228-
np.asarray([['GLO_G1']], dtype=object))]
232+
np.asarray([['g1']], dtype=object))]
229233
)
230234
def test_derived_value_check(derived, row_name, index, value):
231235
"""Check AndroidDerived2021 entries against known values.

0 commit comments

Comments
 (0)