From 8d4afc624c4755ba2f64fd5814e29325e094cd90 Mon Sep 17 00:00:00 2001 From: njouanin Date: Tue, 22 Oct 2024 11:14:26 +0200 Subject: [PATCH] Correction #206 --- backend/bloom/tasks/clean_positions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/bloom/tasks/clean_positions.py b/backend/bloom/tasks/clean_positions.py index fc6e26cc..bab0f357 100644 --- a/backend/bloom/tasks/clean_positions.py +++ b/backend/bloom/tasks/clean_positions.py @@ -146,7 +146,7 @@ def run(batch_time): ) batch["speed"] *= 0.5399568 # Conversion km/h to batch["speed"] = batch["speed"].fillna(batch["position_speed"]) - + batch.replace([np.nan], [None], inplace=True) # Step 7: apply to_keep flag: keep only positions WHERE: # - row["new_vessel"] is True, i.e. there is a new vessel_id # - OR speed is not close to 0, i.e. vessel moved significantly since last position