Skip to content

Commit

Permalink
NPI-3446 Add raw flag to escaped string definitions to make linter ha…
Browse files Browse the repository at this point in the history
…ppy. (Note that it seems to still work without this)
  • Loading branch information
treefern committed Aug 15, 2024
1 parent 9f33165 commit 8773a23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gnssanalysis/gn_io/blq.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


def llh_from_blq(path_or_bytes):
_RE_LLH = _re.compile(b"lon\/lat\:\s+([\d\.]+)+\s+([\d\.\-]+)\s+([\d\.\-]+)")
_RE_LLH = _re.compile(rb"lon\/lat\:\s+([\d\.]+)+\s+([\d\.\-]+)\s+([\d\.\-]+)")
llh = _np.asarray(_RE_LLH.findall(path2bytes(path_or_bytes)))
llh[llh == b""] = 0 # height may be missing, e.g. interpolate_loading's output
return llh.astype(float)
Expand Down
2 changes: 1 addition & 1 deletion gnssanalysis/gn_io/trop.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def read_tro_solution_bytes(snx_bytes: bytes, trop_mode="Ginan") -> _pd.DataFram
try:
solution_df = _pd.read_csv(
_BytesIO(tro_estimate),
sep='\s+',
sep=r"\s+",
comment=b"*",
index_col=False,
header=None,
Expand Down

0 comments on commit 8773a23

Please sign in to comment.