From d727aeb1355fe61ab5210390461eb5fa7deb9c51 Mon Sep 17 00:00:00 2001 From: "F.N. Claessen" Date: Thu, 19 Sep 2024 17:45:06 +0200 Subject: [PATCH] fix: AttributeError: `np.NaN` was removed in the NumPy 2.0 release. Use `np.nan` instead. Signed-off-by: F.N. Claessen --- timely_beliefs/tests/test_df_resampling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timely_beliefs/tests/test_df_resampling.py b/timely_beliefs/tests/test_df_resampling.py index 8eaa3a78..8496fed3 100644 --- a/timely_beliefs/tests/test_df_resampling.py +++ b/timely_beliefs/tests/test_df_resampling.py @@ -303,7 +303,7 @@ def test_downsample_once_upsample_once_around_dst( df = df_wxyz( time_slot_sensor, 25, 1, 1, 1, start ) # 1 deterministic belief per event - df.iloc[0] = np.NaN # introduce 1 NaN value + df.iloc[0] = np.nan # introduce 1 NaN value print(df) # Downsample the original frame