Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce20610 commit e40203dCopy full SHA for e40203d
lib/matplotlib/tests/test_mlab.py
@@ -2768,7 +2768,7 @@ def get_z(x, y):
2768
[-0.1000099, 0.4999943, 1.0999964, 1.6999979],
2769
[-0.3000128, 0.2999894, 0.8999913, 1.4999933]]
2770
zi = mlab.griddata(x, y, z, xi, yi, interp='nn')
2771
- np.testing.assert_array_almost_equal(zi, correct_zi)
+ np.testing.assert_array_almost_equal(zi, correct_zi, 5)
2772
2773
# Decreasing xi or yi should raise ValueError.
2774
assert_raises(ValueError, mlab.griddata, x, y, z, xi[::-1], yi,
@@ -2779,7 +2779,7 @@ def get_z(x, y):
2779
# Passing 2D xi and yi arrays to griddata.
2780
xi, yi = np.meshgrid(xi, yi)
2781
2782
2783
2784
# Masking z array.
2785
z_masked = np.ma.array(z, mask=[False, False, False, True, False])
0 commit comments