Skip to content

Commit

Permalink
Merge pull request #49 from GeoscienceAustralia/NPI-3485-clear-up-ass…
Browse files Browse the repository at this point in the history
…ert-on-clk-read

NPI-3485 Add assert message in CLK read function
  • Loading branch information
ronaldmaj authored Aug 30, 2024
2 parents 390d86d + 95cd454 commit 8956e83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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
Expand All @@ -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

Expand Down

0 comments on commit 8956e83

Please sign in to comment.