diff --git a/src/traffic/algorithms/openap.py b/src/traffic/algorithms/openap.py index 88a0363a..9b9e990a 100644 --- a/src/traffic/algorithms/openap.py +++ b/src/traffic/algorithms/openap.py @@ -32,8 +32,7 @@ def phases(self, twindow: int = 60) -> "Flight": fp = FlightPhase() fp.set_trajectory( - (self.data.timestamp.values - np.datetime64("1970-01-01")) - / np.timedelta64(1, "s"), + (self.data.timestamp.astype(int) // 1_000_000_000).values, altitude, groundspeed, vertical_rate,