def assert_quantities_allclose(coord, q1s, attrs):
 q2s = [getattr(coord, attr) for attr in attrs]
 assert (len(q1s) == len(q2s))
 for (q1, q2) in zip(q1s, q2s):
  assert (q1.shape == q2.shape)
  assert allclose(q1, q2, rtol=0, atol=(1e-13 * q1.unit))

def assert_quantities_allclose ( coord , q1s , attrs ) : q2s = [ getattr ( coord , attr ) for attr in attrs ] assert ( len ( q1s ) == len ( q2s ) ) for ( q1 , q2 ) in zip ( q1s , q2s ) : assert ( q1 . shape == q2 . shape ) assert allclose ( q1 , q2 , rtol = 0 , atol = ( 1e-13 * q1 . unit ) )
compare two tuples of quantities .