Skip to content

Commit

Permalink
pep8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
clementzach committed Jan 19, 2024
1 parent 913e362 commit d7e73ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions forest/jasmine/data2mobmat.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,13 +614,15 @@ def gps_to_mobmat(

return mobmat


def force_valid_longitude(longitude):
"""Forces a longitude coordinate to be within -180 and 180
Args:
longitude: float. The longitude to be coerced
"""
return (longitude + 180) % 360 - 180


def compute_flight_positions(
index: int, mobmat: np.ndarray, interval: float
) -> np.ndarray:
Expand Down

0 comments on commit d7e73ca

Please sign in to comment.