_________________________ test_reproject_celestial_3d __________________________
def test_reproject_celestial_3d():
[...]
out_full, foot_full = _reproject_full(array_in, wcs_in, wcs_out, (3, 160, 170))
out_celestial, foot_celestial = _reproject_celestial(array_in, wcs_in, wcs_out, (3, 160, 170))
> np.testing.assert_allclose(out_full, out_celestial)
reproject/interpolation/tests/test_core.py:391:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
x_id = array([[[ True, True, True, ..., True, True, True],
[ True, True... True],
[ True, True, True, ..., True, True, True]]], dtype=bool)
y_id = array([[[False, False, False, ..., True, True, True],
[False, False... True],
[ True, True, True, ..., True, True, True]]], dtype=bool)
hasval = 'nan'
def chk_same_position(x_id, y_id, hasval='nan'):
try:
assert_array_equal(x_id, y_id)
except AssertionError:
msg = build_err_msg([x, y],
err_msg + '\nx and y %s location mismatch:'
% (hasval), verbose=verbose, header=header,
names=('x', 'y'), precision=precision)
> raise AssertionError(msg)
E AssertionError:
E Not equal to tolerance rtol=1e-07, atol=0
E
E x and y nan location mismatch:
E x: array([[[ nan, nan, nan, ..., nan, nan, nan],
E [ nan, nan, nan, ..., nan, nan, nan],
E [ nan, nan, nan, ..., nan, nan, nan],...
E y: array([[[ 1., 1., 1., ..., nan, nan, nan],
E [ 1., 1., 1., ..., nan, nan, nan],
E [ 1., 1., 1., ..., nan, nan, nan],...
/usr/lib/python2.7/dist-packages/numpy/testing/utils.py:680: AssertionError