Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPI-3485 Add assert message in CLK read function #49

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading