def test_get_bounding_coordinates(): coords = SkyCoord([-1, 0, 1] * u.arcsec, [-2, 0, 2] * u.arcsec, frame=frames.Helioprojective, observer=get_earth("1999-09-13 00:00:00")) bl, tr = _get_bounding_coordinates(coords) assert bl.Tx == -1*u.arcsec assert bl.Ty == -2*u.arcsec assert bl.observer == coords[0].observer assert tr.Tx == 1*u.arcsec assert tr.Ty == 2*u.arcsec assert tr.observer == coords[0].observer
def test_get_bounding_coordinates(): coords = SkyCoord([-1, 0, 1] * u.arcsec, [-2, 0, 2] * u.arcsec, frame=frames.Helioprojective, observer=get_earth("1999-09-13 00:00:00")) bl, tr = _get_bounding_coordinates(coords) assert bl.Tx == -1*u.arcsec assert bl.Ty == -2*u.arcsec assert bl.observer == coords[0].observer assert tr.Tx == 1*u.arcsec assert tr.Ty == 2*u.arcsec assert tr.observer == coords[0].observer