You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: notebooks/tutorials/parsers.ipynb
+10-17Lines changed: 10 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -193,7 +193,7 @@
193
193
"source": [
194
194
"One thing that we need to do to make use of the common functionality of `gnss_lib_py` is to standardize the names of our variables. See the [Standard Naming Conventions](https://gnss-lib-py.readthedocs.io/en/latest/reference/reference.html#standard-naming-conventions) section in the Reference tab of the documentation for the list of standardized names.\n",
195
195
"\n",
196
-
"In our case, we will convert `mySatId` to `sv_id` and `myPseudorange` to `raw_pr_m`. We make these conversions by creating the `_col_map` function and calling the `rename` function in our postprocessing step."
196
+
"In our case, we will convert `mySatId` to `sv_id` and `myPseudorange` to `raw_pr_m`. We make these conversions by simply updating the `_row_map` function."
197
197
]
198
198
},
199
199
{
@@ -203,23 +203,20 @@
203
203
"source": [
204
204
"```python\n",
205
205
"\n",
206
-
"# rename rows\n",
207
-
"col_map = self._column_map()\n",
208
-
"self.rename(col_map)\n",
209
206
"\n",
210
207
"@staticmethod\n",
211
-
"def _column_map():\n",
208
+
"def _row_map():\n",
212
209
"\"\"\"Map of column names from loaded to gnss_lib_py standard\n",
213
210
"\n",
214
211
" Returns\n",
215
212
" -------\n",
216
-
"col_map : Dict\n",
213
+
"row_map : Dict\n",
217
214
" Dictionary of the form {old_name : new_name}\n",
218
215
"\"\"\"\n",
219
-
"col_map = {'mySatId' : 'sv_id',\n",
216
+
"row_map = {'mySatId' : 'sv_id',\n",
220
217
" 'myPseudorange' : 'raw_pr_m',\n",
221
218
" }\n",
222
-
" return col_map\n",
219
+
" return row_map\n",
223
220
"```"
224
221
]
225
222
},
@@ -284,11 +281,7 @@
284
281
"\"\"\"MyReceiver specific postprocessing\n",
285
282
"\n",
286
283
"\"\"\"\n",
287
-
"\n",
288
-
" # rename rows\n",
289
-
" col_map = self._column_map()\n",
290
-
" self.rename(col_map)\n",
291
-
"\n",
284
+
"\n",
292
285
" # correct pseudorange\n",
293
286
" self['corr_pr_m'] = self['raw_pr_m'] + 100.\n",
294
287
"\n",
@@ -297,18 +290,18 @@
297
290
"\n",
298
291
"\n",
299
292
" @staticmethod\n",
300
-
" def _column_map():\n",
293
+
" def _row_map():\n",
301
294
"\"\"\"Map of column names from loaded to gnss_lib_py standard\n",
302
295
"\n",
303
296
" Returns\n",
304
297
" -------\n",
305
-
"col_map : Dict\n",
298
+
"row_map : Dict\n",
306
299
" Dictionary of the form {old_name : new_name}\n",
0 commit comments