From 6cef9ccbead153365051cf7ec80ff043f5aebdf0 Mon Sep 17 00:00:00 2001 From: Jo Bovy Date: Tue, 30 Aug 2016 11:12:26 -0400 Subject: [PATCH] More informative error message --- nose/test_streamdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nose/test_streamdf.py b/nose/test_streamdf.py index c00f411a2..e8a1aecc1 100644 --- a/nose/test_streamdf.py +++ b/nose/test_streamdf.py @@ -1416,7 +1416,7 @@ def test_bovy14_useTM_useTMHessian(): sdftm._interpolatedObsTrackLB[sindx,1],k=3) # Only compare part closest to the progenitor, where this works cindx= sdf_bovy14._interpolatedObsTrackLB[:,0] < 215. - assert numpy.all(numpy.fabs(interpb(sdf_bovy14._interpolatedObsTrackLB[cindx,0])-sdf_bovy14._interpolatedObsTrackLB[cindx,1]) < 0.15), 'stream track computed with useTM and useTMHessian not close to that without in b' + assert numpy.all(numpy.fabs(interpb(sdf_bovy14._interpolatedObsTrackLB[cindx,0])-sdf_bovy14._interpolatedObsTrackLB[cindx,1]) < 0.15), 'stream track computed with useTM and useTMHessian not close to that without in b by %g' % (numpy.amax(numpy.fabs(interpb(sdf_bovy14._interpolatedObsTrackLB[cindx,0])-sdf_bovy14._interpolatedObsTrackLB[cindx,1]))) interpD= interpolate.InterpolatedUnivariateSpline(\ sdftm._interpolatedObsTrackLB[sindx,0], sdftm._interpolatedObsTrackLB[sindx,2],k=3)