Skip to content

Commit

Permalink
NumPy 2 compat
Browse files Browse the repository at this point in the history
AttributeError: `np.NaN` was removed in the NumPy 2.0 release. Use `np.nan` instead.. Did you mean: 'nan'?
  • Loading branch information
Tobias-Fischer authored Jul 14, 2024
1 parent e3e953f commit d7a00ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hloc/utils/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit d7a00ea

Please sign in to comment.