Skip to content

Commit

Permalink
add: Message to assert in CLK read function - data not parsable
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldmaj committed Aug 30, 2024
1 parent 390d86d commit 95cd454
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 95cd454

Please sign in to comment.