Skip to content

Commit 686d0f1

Browse files
authored
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.
1 parent 2413f86 commit 686d0f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/viz/misc/python/test/test_viz_simple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def test_viz_show_cloud_random_color(self):
179179
def test_viz_show_cloud_masked(self):
180180
dragon_cloud,_,_ = cv.viz.readCloud(self.find_file("viz/dragon.ply"))
181181

182-
qnan = np.NAN
182+
qnan = np.nan
183183
for idx in range(dragon_cloud.shape[0]):
184184
if idx % 15 != 0:
185185
dragon_cloud[idx,:] = qnan

0 commit comments

Comments
 (0)