def test_array_coordinates_distances():
 ICRS(ra=(np.array([1, 2]) * u.deg), dec=(np.array([3, 4]) * u.deg), distance=([0.1, 0.2] * u.kpc))
 with pytest.raises(ValueError):
  ICRS(ra=(np.array([1, 2, 3]) * u.deg), dec=(np.array([[3, 4], [5, 6]]) * u.deg), distance=(2.0 * u.kpc))
 with pytest.raises(ValueError):
  ICRS(ra=(np.array([1, 2]) * u.deg), dec=(np.array([3, 4]) * u.deg), distance=([0.1, 0.2, 3.0] * u.kpc))

def test_array_coordinates_distances ( ) : ICRS ( ra = ( np . array ( [ 1 , 2 ] ) * u . deg ) , dec = ( np . array ( [ 3 , 4 ] ) * u . deg ) , distance = ( [ 0.1 , 0.2 ] * u . kpc ) ) with pytest . raises ( ValueError ) : ICRS ( ra = ( np . array ( [ 1 , 2 , 3 ] ) * u . deg ) , dec = ( np . array ( [ [ 3 , 4 ] , [ 5 , 6 ] ] ) * u . deg ) , distance = ( 2.0 * u . kpc ) ) with pytest . raises ( ValueError ) : ICRS ( ra = ( np . array ( [ 1 , 2 ] ) * u . deg ) , dec = ( np . array ( [ 3 , 4 ] ) * u . deg ) , distance = ( [ 0.1 , 0.2 , 3.0 ] * u . kpc ) )
test creating coordinates from arrays and distances .