def test_pix_lower(self, galaxy):
"""Tests mode='pix', xyorig='lower'."""
coords = [[0, 0],
[5, 3],
[10, 10],
[1.5, 2.5],
[0.4, 0.25]]
expected = [[0, 0],
[3, 5],
[10, 10],
[2, 2],
[0, 0]]
cubeCoords = convertCoords(coords, mode='pix', shape=galaxy.shape,
xyorig='lower')
pytest.approx(cubeCoords, np.array(expected))
评论列表
文章目录