Skip to content

Commit

Permalink
Ignore dcb rows with fewer than 10 columns
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellgoffpc committed Dec 15, 2023
1 parent f4bd98c commit 2cffd7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions laika/dcb.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def parse_dcbs(file_name, SUPPORTED_CONSTELLATIONS):
prn = line_components[2]
if get_constellation(prn) not in SUPPORTED_CONSTELLATIONS:
continue
if len(line_components) < 10: # Handle invalid formatting in estimated_value
continue
dcb_type = line_components[3] + '_' + line_components[4]
epoch = GPSTime.from_datetime(datetime.strptime(line_components[5], '%Y:%j:%f')) + 12*SECS_IN_HR
if prn not in dcbs_dict:
Expand Down

0 comments on commit 2cffd7e

Please sign in to comment.