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

list index out of range for ais.stream.decode #200

Open
edowson opened this issue Jan 10, 2020 · 0 comments
Open

list index out of range for ais.stream.decode #200

edowson opened this issue Jan 10, 2020 · 0 comments

Comments

@edowson
Copy link

edowson commented Jan 10, 2020

I'm trying decode a single NMEA AIS message using libais, but can't seem to get a proper output.

Code:

import warnings
warnings.filterwarnings("ignore")
import ais.stream

nmea1 = '!AIVDM,1,1,,A,33P;Tw0tjBQO22:E7dm66DrB20UP,0*2E'
output = [msg for msg in ais.stream.decode(nmea1)]
print(output)

Output:

[]
list index out of range
list index out of range
list index out of range
...
@edowson edowson changed the title No output for ais.stream.decode list index out of range for ais.stream.decode Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant