1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-24 03:03:35 +08:00

Replace np.NAN by np.nan in test_viz_simple.py

As per
https://numpy.org/doc/stable/numpy_2_0_migration_guide.html
for users of NumPy 2.0.
This commit is contained in:
Yannis Guyon
2024-08-08 09:58:15 +02:00
committed by GitHub
parent 2413f86419
commit 686d0f1970

View File

@@ -179,7 +179,7 @@ class viz_test(NewOpenCVTests):
def test_viz_show_cloud_masked(self):
dragon_cloud,_,_ = cv.viz.readCloud(self.find_file("viz/dragon.ply"))
qnan = np.NAN
qnan = np.nan
for idx in range(dragon_cloud.shape[0]):
if idx % 15 != 0:
dragon_cloud[idx,:] = qnan