def test_last_parameter(self): p = [0, 0, 2, 4] xaxis, yaxis = range(100), range(110) image = pst._plane_parameters_to_image(p, xaxis, yaxis) assert_allclose(image, -2)
def test_offset(self): p = [0, 0, 1, 3] xaxis, yaxis = range(100), range(110) image = pst._plane_parameters_to_image(p, xaxis, yaxis) assert_allclose(image, -3)
def test_y_plane(self): p = [0, 1, 1, 0] xaxis, yaxis = range(100), range(110) image = pst._plane_parameters_to_image(p, xaxis, yaxis) assert image[0, 0] > image[-1, 0]
def test_simple(self): p = [0, 0, 1, 0] xaxis, yaxis = range(100), range(110) image = pst._plane_parameters_to_image(p, xaxis, yaxis) assert_allclose(image, 0)