Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@lazy_evaluation()
def max_split(
self,
value: Union[int, str] = "10T",
unit: Optional[str] = None,
key: Callable[[Optional["Flight"]], Any] = attrgetter_duration,
):
...
@lazy_evaluation()
def last(self, **kwargs):
...
@lazy_evaluation()
def intersects(self, shape: Union["Airspace", base.BaseGeometry]) -> bool:
...
@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.
"""
...
@lazy_evaluation()
def agg_time(
self, freq="1T", new_name="{feature}_{agg}", merge=True, **kwargs
):
...
@lazy_evaluation()
def shorter_than(
self, value: Union[str, timedelta, pd.Timedelta], strict: bool = True
):
...
@lazy_evaluation()
def cumulative_distance(self, compute_gs: bool = False, **kwargs):
...
@lazy_evaluation()
def resample(self, rule: Union[str, int] = "1s"):
...
@lazy_evaluation()
def first(self, **kwargs):
...
@lazy_evaluation()
def query_opensky(self):
...