def test_scans_errors(self, obj, im): with pytest.raises(TypeError): get_maxima_matrix(im, scans=obj)
def test_im_errors(self, obj): with pytest.raises(TypeError): get_maxima_matrix(obj)
def test_points_errors(self, obj, im): with pytest.raises(TypeError): get_maxima_matrix(im, points=obj)
def test_get_maxima_matrix(self, peak_list, im, tic): maxima_matrix = get_maxima_matrix(im) assert isinstance(maxima_matrix, numpy.ndarray)