From c4de5fa6a262eb0c673e1df091b3441e3b8340f1 Mon Sep 17 00:00:00 2001 From: blychs Date: Tue, 19 Nov 2024 11:47:29 -0700 Subject: [PATCH] Bugfix: suffix when merging mobile_or_aircraft Previously it would add the defaul _x, _y, but MELODIES-MONET expects '', '_new' --- melodies_monet/util/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/melodies_monet/util/tools.py b/melodies_monet/util/tools.py index 96bf5dd1..d7d48e9d 100644 --- a/melodies_monet/util/tools.py +++ b/melodies_monet/util/tools.py @@ -353,7 +353,7 @@ def mobile_and_ground_pair(ds_model,df_obs, var_name_list): final_df_model = merge_asof(df_obs, df_model, by=['latitude', 'longitude'], - on='time', direction='nearest') + on='time', direction='nearest', suffixes=('', '_new')) return final_df_model