Skip to content

Commit 41860cf

Browse files
NumPy 2 compatibility (#405)
AttributeError: `np.NaN` was removed in the NumPy 2.0 release. Use `np.nan` instead.. Did you mean: 'nan'?
1 parent e3e953f commit 41860cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hloc/utils/database.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ def add_image(
183183
self,
184184
name,
185185
camera_id,
186-
prior_q=np.full(4, np.NaN),
187-
prior_t=np.full(3, np.NaN),
186+
prior_q=np.full(4, np.nan),
187+
prior_t=np.full(3, np.nan),
188188
image_id=None,
189189
):
190190
cursor = self.execute(

0 commit comments

Comments
 (0)