Skip to content

Commit

Permalink
fix #467 flight.phases
Browse files Browse the repository at this point in the history
  • Loading branch information
xoolive committed Oct 28, 2024
1 parent 78baf38 commit afae804
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/traffic/algorithms/openap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit afae804

Please sign in to comment.