Skip to content

Commit

Permalink
fix pyarrow
Browse files Browse the repository at this point in the history
  • Loading branch information
xoolive committed Oct 30, 2024
1 parent 47e6bed commit a52cd05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/traffic/algorithms/openap.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def phases(self, twindow: int = 60) -> "Flight":

fp = FlightPhase()
fp.set_trajectory(
(self.data.timestamp.astype(int) // 1_000_000_000).values,
self.data.timestamp.dt.as_unit("s").astype(int).values,
altitude,
groundspeed,
vertical_rate,
Expand Down
4 changes: 2 additions & 2 deletions src/traffic/core/time.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from datetime import datetime, timezone
from datetime import datetime
from numbers import Real

from pyopensky.time import (
Expand Down Expand Up @@ -53,4 +53,4 @@ def to_datetime(time: timelike) -> pd.Timestamp:
"automatically, look at the tzinfo (resp. tz) argument of the "
"datetime (resp. pd.Timestamp) constructor."
)
return time # type: ignore
return time

0 comments on commit a52cd05

Please sign in to comment.