Skip to content

Commit

Permalink
Merge commit '8f46d7fb2d351e2aa7bb9bdf5dc8e33d2edf05a6' into NPI-3465…
Browse files Browse the repository at this point in the history
…-transfer-ops-funcs
  • Loading branch information
Eugene-ISG committed Aug 30, 2024
2 parents 9ac160f + 8f46d7f commit e02cd4c
Showing 2 changed files with 11 additions and 9 deletions.
9 changes: 5 additions & 4 deletions gnssanalysis/gn_io/clk.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""RINEX CLK file parsing function"""

import logging as _logging
import re as _re
from io import BytesIO as _BytesIO
@@ -21,7 +22,7 @@ def read_clk(clk_path):

data = content[data_b:]
data_line = _RE_LINE.search(data)
assert data_line is not None
assert data_line is not None, "CLK data not parsable - file could be empty"

len_line = len(data_line.groups()[0]) # need to get a line and check the length

@@ -45,9 +46,9 @@ def read_clk(clk_path):
"D": _np.uint16,
"h": _np.int32,
"m": _np.int32,
"s": _np.float_,
"EST": _np.float_,
"STD": _np.float_,
"s": _np.float64,
"EST": _np.float64,
"STD": _np.float64,
},
na_values=["NAN", "-NAN"],
)
11 changes: 6 additions & 5 deletions gnssanalysis/gn_io/trace.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TRACE file parser. Note the separate functions for values and residuals"""

import logging as _logging
import os as _os
import re as _re
@@ -45,10 +46,10 @@ def _read_trace_states(path_or_bytes, throw_if_nans=False):

if states is None:
return None

if throw_if_nans:
_gn_aux.throw_if_nans(states)

df = _pd.read_csv(
_BytesIO(states),
delimiter="\t",
@@ -88,7 +89,7 @@ def _read_trace_residuals(path_or_bytes, it_max_only=True, throw_if_nans=False):

if residuals is None:
return None

if throw_if_nans:
_gn_aux.throw_if_nans(residuals)

@@ -171,8 +172,8 @@ def _find_trace(output_path: str) -> tuple:
# {
# 1: _np.int16, 2:_np.int32, 4: '<U3',
# 6: '<U1', 8: '<U4',
# 9: _np.float_, 10: '<U4', 11: _np.float_,
# 12: '<U4', 13: _np.float_
# 9: _np.float64, 10: '<U4', 11: _np.float64,
# 12: '<U4', 13: _np.float64
# })

# df_LC.columns = ['W','S','PRN','LP',8,9,10,11,12,13]

0 comments on commit e02cd4c

Please sign in to comment.