ais.tag_block.Parse() and ais.vdm.Parse() return dictionaries with some keys that should be cast to int and float. For example, result from ais.vdm.Parse():
All numeric values except checksum should be converted to the appropriate Python type with ais.util.MaybeToNumber(). Additionally, MaybeToNumber() should probably add NoneType to the isinsance() checks at the top.
ais.tag_block.Parse()
andais.vdm.Parse()
return dictionaries with some keys that should be cast toint
andfloat
. For example, result fromais.vdm.Parse()
:All numeric values except
checksum
should be converted to the appropriate Python type withais.util.MaybeToNumber()
. Additionally,MaybeToNumber()
should probably addNoneType
to theisinsance()
checks at the top.@schwehr I can take care of this.