Skip to content

Commit

Permalink
More informative error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jobovy committed Aug 30, 2016
1 parent 5169efe commit 6cef9cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nose/test_streamdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6cef9cc

Please sign in to comment.