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'm working with pyais and I'm finding the syntax NMEAMessage(blah).asdict()['mmsi']) clumsy. It should be possible to subscript these fields if NMEAMessage defined a getitem.
I will try to enter a pull request at some point, if I'm able to make time.
The text was updated successfully, but these errors were encountered:
jep, you are definitely right. I believe that I tried it during the early days of Pyais. Back then I came across some kind of issue/error and stopped working on it. Anyway I would love to see a PR from you. Otherwise I will try to implement it, as soon as time allows!
Please note, that you provided NMEAMessage(blah).asdict()['mmsi']) as an example. This still won't work, because the NMEAMessage just capsules the NMEA message. It does not know or care about the actual payload. In order to access the mmsi, you first have to call NMEAMessage.decode().
I'm working with pyais and I'm finding the syntax NMEAMessage(blah).asdict()['mmsi']) clumsy. It should be possible to subscript these fields if NMEAMessage defined a getitem.
I will try to enter a pull request at some point, if I'm able to make time.
The text was updated successfully, but these errors were encountered: