mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-23 00:49:38 +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:
@@ -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
|
||||
|
Reference in New Issue
Block a user