Skip to content

Commit

Permalink
pep8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
clementzach committed Jan 10, 2024
1 parent 90de508 commit b5c9c9c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions forest/jasmine/traj2stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -1643,6 +1643,13 @@ def gps_stats_main(
participant_id, study_folder, "gps",
tz_str, time_start, time_end,
)

if ((data["longitude"].max() > 180)
or (data["longitude"].min() < -180)):
logger.info("Reconciled bad longitude data for user %s",
participant_id)
data["longitude"] = data["longitude"] % 360 - 180

if data.shape == (0, 0):
logger.info("No data available.")
continue
Expand Down

0 comments on commit b5c9c9c

Please sign in to comment.