How to use the traffic.core.lazy.lazy_evaluation function in traffic

To help you get started, we’ve selected a few traffic examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github xoolive / traffic / traffic / core / traffic.py View on Github external
    @lazy_evaluation()
    def max_split(
        self,
        value: Union[int, str] = "10T",
        unit: Optional[str] = None,
        key: Callable[[Optional["Flight"]], Any] = attrgetter_duration,
    ):
        ...
github xoolive / traffic / traffic / core / traffic.py View on Github external
    @lazy_evaluation()
    def last(self, **kwargs):
        ...
github xoolive / traffic / traffic / core / traffic.py View on Github external
    @lazy_evaluation()
    def intersects(self, shape: Union["Airspace", base.BaseGeometry]) -> bool:
        ...
github xoolive / traffic / traffic / core / traffic.py View on Github external
    @lazy_evaluation(idx_name="idx")
    def assign_id(self, name: str = "{self.callsign}_{idx:>03}", idx: int = 0):
        """Assigns a `flight_id` to trajectories present in the structure.

        The heuristics with iterate on flights based on ``flight_id`` (if the
        feature is present) or of ``icao24``, ``callsign`` and intervals of time
        without recorded data.

        The flight_id is created according to a pattern passed in parameter,
        by default based on the callsign and an incremented index.
        """
        ...
github xoolive / traffic / traffic / core / traffic.py View on Github external
    @lazy_evaluation()
    def agg_time(
        self, freq="1T", new_name="{feature}_{agg}", merge=True, **kwargs
    ):
        ...
github xoolive / traffic / traffic / core / traffic.py View on Github external
    @lazy_evaluation()
    def shorter_than(
        self, value: Union[str, timedelta, pd.Timedelta], strict: bool = True
    ):
        ...
github xoolive / traffic / traffic / core / traffic.py View on Github external
    @lazy_evaluation()
    def cumulative_distance(self, compute_gs: bool = False, **kwargs):
        ...
github xoolive / traffic / traffic / core / traffic.py View on Github external
    @lazy_evaluation()
    def resample(self, rule: Union[str, int] = "1s"):
        ...
github xoolive / traffic / traffic / core / traffic.py View on Github external
    @lazy_evaluation()
    def first(self, **kwargs):
        ...
github xoolive / traffic / traffic / core / traffic.py View on Github external
    @lazy_evaluation()
    def query_opensky(self):
        ...