From 045d5487a62cbd5904dceefe0c14943d284c4b5e Mon Sep 17 00:00:00 2001 From: "Jack-(parallel)" Date: Tue, 7 Feb 2023 13:37:51 -0500 Subject: [PATCH] + numpy 2.10 drops float, with python native float support + but np.float64 has been supported still --- .../kalibr/python/kalibr_camera_calibration/CameraUtils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aslam_offline_calibration/kalibr/python/kalibr_camera_calibration/CameraUtils.py b/aslam_offline_calibration/kalibr/python/kalibr_camera_calibration/CameraUtils.py index 5c9de6cd9..1ce1747db 100644 --- a/aslam_offline_calibration/kalibr/python/kalibr_camera_calibration/CameraUtils.py +++ b/aslam_offline_calibration/kalibr/python/kalibr_camera_calibration/CameraUtils.py @@ -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