You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that when 1.03289349e+03 is evaluated and asserted almost equal to 1032.89349365 using np.testing.assert_almost_equal to six decimal places, the test fails.
The original test for
pyCGM_Single/pyCGM.py/pelvisJointCenter
expects the z component of the pelvis origin to equal1032.89349365
.pyCGM/pyCGM_Single/tests/test_pycgm_axis.py
Line 966 in 1750a62
The new test for pelvisJointCenter (now
pyCGM_Single/pyCGM.py/calc_axis_pelvis
) expects the same value but in scientific notation:1.03289349e+03
https://github.com/MattGonz/pyCGM/blob/15a9030e9c6e0835ab12f0e2bde0315488ce9b55/pyCGM_Single/tests/test_pycgm_axis.py#L973
It seems that when
1.03289349e+03
is evaluated and asserted almost equal to1032.89349365
usingnp.testing.assert_almost_equal
to six decimal places, the test fails.Manual assertion:
np.testing.assert_almost_equal(1032.89349365, 1032.89349, 6)
The text was updated successfully, but these errors were encountered: