You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was running the tag_block code on a file of AIS messages, and I got an exception:
File "/home/avanpelt/git/libais/ais/tag_block.py", line 135, in put
decoded = nmea_messages.DecodeLine(match['payload'])
File "/home/avanpelt/git/libais/ais/nmea_messages.py", line 470, in DecodeLine
message = HANDLERSsentence
File "/home/avanpelt/git/libais/ais/nmea_messages.py", line 127, in HandleAds
TimeUtc(fields)
File "/home/avanpelt/git/libais/ais/nmea_messages.py", line 52, in TimeUtc
seconds, fractional_seconds = FloatSplit(float(fields['seconds']))
TypeError: float() argument must be a string or a number, not 'NoneType'
I was running the tag_block code on a file of AIS messages, and I got an exception:
File "/home/avanpelt/git/libais/ais/tag_block.py", line 135, in put
decoded = nmea_messages.DecodeLine(match['payload'])
File "/home/avanpelt/git/libais/ais/nmea_messages.py", line 470, in DecodeLine
message = HANDLERSsentence
File "/home/avanpelt/git/libais/ais/nmea_messages.py", line 127, in HandleAds
TimeUtc(fields)
File "/home/avanpelt/git/libais/ais/nmea_messages.py", line 52, in TimeUtc
seconds, fractional_seconds = FloatSplit(float(fields['seconds']))
TypeError: float() argument must be a string or a number, not 'NoneType'
line = '$ANADS,L3 AIS ID,,A,4,I,N*02'
sentence = 'ADS'
fields = {'talker': 'AN', 'sentence': 'ADS', 'id': 'L3 AIS ID', 'time_utc': None, 'hours': None, 'minutes': None, 'seconds': None, 'alarm': '', 'time_sync_method': '4', 'pos_src': 'I', 'time_src': 'N', 'checksum': '02'}
The text was updated successfully, but these errors were encountered: