From d7a00eab333cc3769526a687825eb177f4becd90 Mon Sep 17 00:00:00 2001 From: Tobias Fischer Date: Sun, 14 Jul 2024 21:03:42 +1000 Subject: [PATCH] NumPy 2 compat AttributeError: `np.NaN` was removed in the NumPy 2.0 release. Use `np.nan` instead.. Did you mean: 'nan'? --- hloc/utils/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hloc/utils/database.py b/hloc/utils/database.py index c8a7aa5c..6be9d51a 100644 --- a/hloc/utils/database.py +++ b/hloc/utils/database.py @@ -183,8 +183,8 @@ def add_image( self, name, camera_id, - prior_q=np.full(4, np.NaN), - prior_t=np.full(3, np.NaN), + prior_q=np.full(4, np.nan), + prior_t=np.full(3, np.nan), image_id=None, ): cursor = self.execute(