Skip to content

Commit 10c567c

Browse files
committed
Fix numpy.in1d deprecation: use isin instead
1 parent 87f83d5 commit 10c567c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plotpy/tests/unit/test_curve_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def test_edit_point_tool():
216216
tool.reset_arrays()
217217
assert tool.get_changes() == {}
218218
x_arr, y_arr = curve_item.get_data()
219-
assert np.in1d(x_arr, orig_x).all() and np.in1d(y_arr, orig_y).all()
219+
assert np.isin(x_arr, orig_x).all() and np.isin(y_arr, orig_y).all()
220220

221221
exec_dialog(win)
222222

0 commit comments

Comments
 (0)