Skip to content

Commit

Permalink
Merge pull request #597 from jaku-jaku/fix/python
Browse files Browse the repository at this point in the history
Add support for float numpy>=1.24
  • Loading branch information
goldbattle authored Oct 28, 2023
2 parents 94bb843 + 045d548 commit 6b2359f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ def getReprojectionErrorStatistics(all_rerrs):
rerr_matrix = np.array(rerr_matrix)
gc.enable()

mean = np.mean(rerr_matrix, 0, dtype=np.float)
std = np.std(rerr_matrix, 0, dtype=np.float)
mean = np.mean(rerr_matrix, 0, dtype=np.float64)
std = np.std(rerr_matrix, 0, dtype=np.float64)

return mean, std

Expand Down

0 comments on commit 6b2359f

Please sign in to comment.