1 Commits

Author SHA1 Message Date
Xavier Olive
b1f8f6ed62 Some annotations for quantities 2023-06-14 22:50:33 +02:00
4 changed files with 5 additions and 9 deletions

3
pyModeS/.gitignore vendored
View File

@@ -1,3 +0,0 @@
decoder/flarm/decode.c
extra/demod2400/core.c
c_common.c

View File

@@ -1,4 +1,5 @@
from typing import TypedDict from typing import TypedDict
from typing_extensions import Annotated
from .decode import flarm as flarm_decode from .decode import flarm as flarm_decode
@@ -10,8 +11,8 @@ class DecodedMessage(TypedDict):
icao24: str icao24: str
latitude: float latitude: float
longitude: float longitude: float
altitude: int altitude: Annotated[int, "m"]
vertical_speed: float vertical_speed: Annotated[float, "m/s"]
groundspeed: int groundspeed: int
track: int track: int
type: str type: str

View File

@@ -142,6 +142,5 @@ def flarm(long timestamp, str msg, float refLat, float refLon, **kwargs):
isIcao24=magic==0x10, isIcao24=magic==0x10,
noTrack=noTrack, noTrack=noTrack,
stealth=stealth, stealth=stealth,
gps=gps,
**kwargs **kwargs
) )

View File

@@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "pyModeS" name = "pyModeS"
version = "2.17" version = "2.16"
description = "Python Mode-S and ADS-B Decoder" description = "Python Mode-S and ADS-B Decoder"
authors = ["Junzi Sun <j.sun-1@tudelft.nl>"] authors = ["Junzi Sun <j.sun-1@tudelft.nl>"]
license = "GNU GPL v3" license = "GNU GPL v3"
@@ -22,8 +22,7 @@ include = [
"*.pxd", "*.pxd",
"*.pyi", "*.pyi",
"py.typed", "py.typed",
{ path = "pyModeS/**/*.so", format = "wheel" }, { path = "pyModeS/**/*.so", format = "wheel" }
{ path = "pyModeS/**/*.pyd", format = "wheel" }
] ]
[tool.poetry.build] [tool.poetry.build]