From 95cd4543839a4db71f7470b1e451e8e7af002120 Mon Sep 17 00:00:00 2001 From: Ronald Maj Date: Fri, 30 Aug 2024 01:19:22 +0000 Subject: [PATCH] add: Message to assert in CLK read function - data not parsable --- gnssanalysis/gn_io/clk.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnssanalysis/gn_io/clk.py b/gnssanalysis/gn_io/clk.py index e68fb81..1d164ff 100644 --- a/gnssanalysis/gn_io/clk.py +++ b/gnssanalysis/gn_io/clk.py @@ -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