Skip to content

Commit

Permalink
remove sample_so6
Browse files Browse the repository at this point in the history
  • Loading branch information
xoolive committed Oct 31, 2024
1 parent 3be3081 commit 794c5f3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/traffic/data/samples/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
import pandas as pd

from ...core import Airspace, Flight, Traffic
from ..eurocontrol.ddr.so6 import SO6

_current_dir = Path(__file__).parent
__all__ = [
*sorted(f.stem[:-5] for f in _current_dir.glob("**/*.json.gz")),
"sample_so6",
"sample_dump1090",
]

Expand Down Expand Up @@ -68,7 +66,6 @@ def assign_id(t: Union[Traffic, Flight], name: str) -> Union[Traffic, Flight]:
noisy: Flight
quickstart: Traffic
sample_dump1090: Path
sample_m3: SO6
switzerland: Traffic
texas_longhorn: Flight
zurich_airport: Traffic
Expand All @@ -78,8 +75,6 @@ def assign_id(t: Union[Traffic, Flight], name: str) -> Union[Traffic, Flight]:
def __getattr__(name: str) -> Any:
if name == "sample_dump1090":
return Path(_current_dir / "dump1090" / "sample_dump1090.bin")
if name == "sample_m3":
return SO6.from_file(_current_dir / "so6" / "sample_m3.so6.7z")
if name == "lfbo_tma":
return Airspace.from_file(_current_dir / "airspaces" / "LFBOTMA.json")
filelist = list(_current_dir.glob(f"**/{name}.json.gz"))
Expand Down

0 comments on commit 794c5f3

Please sign in to comment.