nipy/nipy — pull request #119 by yarikoptic (2011-10-13 16:55:22+00:00)
Title: relax comparison to assert_array_almost_equal in test_apply_affine

otherwise leads to silly failure due to minuscule loss of precision
during operation:

AssertionError:
Arrays are not equal

(mismatch 16.6666666667%)
x: array([[[-0.50688799, -1.66266008, -4.00463121],
[ 3.34535676, -0.93336192, 0.81055908],
[ 1.8903341 , -0.50335599, -3.35445869]],...
y: array([[[-0.50688799, -1.66266008, -4.00463121],
[ 3.34535676, -0.93336192, 0.81055908],
[ 1.8903341 , -0.50335599, -3.35445869]],...

(Pdb) print x
[[[-0.50688799 -1.66266008 -4.00463121]
[ 3.34535676 -0.93336192 0.81055908]
[ 1.8903341 -0.50335599 -3.35445869]]

[[ 0.65062492 -1.29969132 -2.77813354]
[ 4.01248837 0.63213532 -0.52546691]
[-6.76387776 -0.60131449 0.17963992]]]
(Pdb) print y
[[[-0.50688799 -1.66266008 -4.00463121]
[ 3.34535676 -0.93336192 0.81055908]
[ 1.8903341 -0.50335599 -3.35445869]]

[[ 0.65062492 -1.29969132 -2.77813354]
[ 4.01248837 0.63213532 -0.52546691]
[-6.76387776 -0.60131449 0.17963992]]]
(Pdb) print x - y
[[[ 0.00000000e+00 0.00000000e+00 0.00000000e+00]
[ 0.00000000e+00 0.00000000e+00 0.00000000e+00]
[ 2.22044605e-16 0.00000000e+00 0.00000000e+00]]

[[ -1.11022302e-16 0.00000000e+00 0.00000000e+00]
[ -8.88178420e-16 0.00000000e+00 0.00000000e+00]
[ 0.00000000e+00 0.00000000e+00 0.00000000e+00]]]