Skip to content

Commit a481a67

Browse files
committed
update rinexconv
1 parent 75c84eb commit a481a67

7 files changed

Lines changed: 221 additions & 129 deletions

File tree

src/pygnssutils/rinex_conv.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
MET,
4444
NAV,
4545
OBS,
46+
RINEX4,
4647
RINEX_CANCELLED,
4748
RINEX_ERROR,
4849
RINEX_NORECS,
@@ -272,7 +273,7 @@ def process_input_data(
272273
for raw, parsed in gnr:
273274
if stopevent is not None:
274275
if stopevent.is_set():
275-
raise RINEXProcessingError("Cancelled")
276+
raise KeyboardInterrupt("Terminated by user")
276277
if raw is not None:
277278
self._tot += 1
278279
self._progress = int(round(100 * self._tot / self._msgcount, 0))
@@ -343,7 +344,7 @@ def format_header_common(self, rinextype: Literal["O", "N", "M"]) -> str:
343344
+ format_runby()
344345
+ format_comments(self.user_comments)
345346
)
346-
if self._rinex_version >= "4.00":
347+
if self._rinex_version >= RINEX4:
347348
hdr += (
348349
format_doi(self._doi)
349350
+ format_licenseofuse(self._license)

0 commit comments

Comments
 (0)