def test_delete_masked_points(): """Test deleting masked points.""" a = ma.masked_array(np.arange(5), mask=[False, True, False, False, False]) b = ma.masked_array(np.arange(5), mask=[False, False, False, True, False]) expected = np.array([0, 2, 4]) a, b = _delete_masked_points(a, b) assert_array_equal(a, expected) assert_array_equal(b, expected)
def test_delete_masked_points(): """Test deleting masked points.""" a = ma.masked_array(np.arange(5), mask=[False, True, False, False, False]) b = ma.masked_array(np.arange(5), mask=[False, False, False, True, False]) expected = np.array([0, 2, 4]) a, b = _delete_masked_points(a, b) assert_array_equal(a, expected) assert_array_equal(b, expected)