f0ca07ba0b25bebe35d8f88cfd8e46ef64e4e3aa,lib/matplotlib/tests/test_cbook.py,Test_delete_masked_points,test_rgba,#Test_delete_masked_points#,62

Before Change


        assert_array_equal(actual[1], expected[1])

    def test_rgba(self):
        actual = dmp(self.arr3, self.arr_rgba)
        ind = [0, 1, 5]
        expected = (self.arr3[ind].compressed(), self.arr_rgba[ind])
        assert_array_equal(actual[0], expected[0])
        assert_array_equal(actual[1], expected[1])

After Change


        assert_array_equal(actual[1], a_masked[ind].compressed())

    def test_rgba(self):
        a_masked = np.ma.array([1, 2, 3, np.nan, np.nan, 6],
                               mask=[False, False, True, True, False, False])
        a_rgba = mcolors.to_rgba_array(["r", "g", "b", "c", "m", "y"])
        actual = delete_masked_points(a_masked, a_rgba)
        ind = [0, 1, 5]
        assert_array_equal(actual[0], a_masked[ind].compressed())
        assert_array_equal(actual[1], a_rgba[ind])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 17

Instances


Project Name: matplotlib/matplotlib
Commit Name: f0ca07ba0b25bebe35d8f88cfd8e46ef64e4e3aa
Time: 2019-05-30
Author: 2836374+timhoffm@users.noreply.github.com
File Name: lib/matplotlib/tests/test_cbook.py
Class Name: Test_delete_masked_points
Method Name: test_rgba


Project Name: matplotlib/matplotlib
Commit Name: f0ca07ba0b25bebe35d8f88cfd8e46ef64e4e3aa
Time: 2019-05-30
Author: 2836374+timhoffm@users.noreply.github.com
File Name: lib/matplotlib/tests/test_cbook.py
Class Name: Test_delete_masked_points
Method Name: test_datetime


Project Name: matplotlib/matplotlib
Commit Name: f0ca07ba0b25bebe35d8f88cfd8e46ef64e4e3aa
Time: 2019-05-30
Author: 2836374+timhoffm@users.noreply.github.com
File Name: lib/matplotlib/tests/test_cbook.py
Class Name: Test_delete_masked_points
Method Name: test_string_seq


Project Name: matplotlib/matplotlib
Commit Name: f0ca07ba0b25bebe35d8f88cfd8e46ef64e4e3aa
Time: 2019-05-30
Author: 2836374+timhoffm@users.noreply.github.com
File Name: lib/matplotlib/tests/test_cbook.py
Class Name: Test_delete_masked_points
Method Name: test_rgba