I am currently working on a PR to modify the mechanics core - #2412. The 
Travis build seems to be failing for a couple of doctests in 
the doc/src/modules/physics/mechanics/bicycle_example.rst file. Have a look 
here - https://travis-ci.org/sympy/sympy/jobs/11069792
The problem is, neither Gilbert nor I are able to figure out why. The 
weirder stuff is, doing 
./bin/doctest -n doc/src/modules/physics/mechanics/bicycle_example.rst
on my machine gives no error once, and 5 errors the next time I run it 
(Without altering any code in the meantime). Same goes for the command 
without the '-n' parameter.
Can anybody help us out with this? The PR is stuck at this issue, and we 
need to resolve it soon. (I have attached a file with the errors shown)

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.
sachin@sachin-Inspiron-5520:~/sympyrepo/sympy$ ./bin/doctest 
doc/src/modules/physics/mechanics/bicycle_example.rst
============================== rst doctests start ==============================
executable:         /usr/bin/python  (2.7.3-final-0) [CPython]
architecture:       64-bit
cache:              yes
ground types:       python 
hash randomization: on (PYTHONHASHSEED=1313832924)

epo/sympy/doc/src/modules/physics/mechanics/bicycle_example.rst [88]        [OK]
sachin@sachin-Inspiron-5520:~/sympyrepo/sympy$ ./bin/doctest 
doc/src/modules/physics/mechanics/bicycle_example.rst
**********************************************************************
File 
"/home/sachin/sympyrepo/sympy/doc/src/modules/physics/mechanics/bicycle_example.rst",
 line 109, in bicycle_example.rst
Failed example:
    Steer.v2pt_theory(WR_mc, N, Frame)
Expected:
    WRrad*(u1*sin(q2) + u3 + u4)*R.x - WRrad*u2*R.y + framelength*(u1*sin(q2) + 
u4)*Frame.x - framelength*(-u1*sin(htangle + q4)*cos(q2) + u2*cos(htangle + 
q4))*Frame.y
Got:
    WRrad*(u1*sin(q2) + u3 + u4)*R.x - WRrad*u2*R.y + 
framelength*((-(-sin(q2)*sin(q5) + cos(htangle + q4)*cos(q2)*cos(q5))*sin(q5) + 
(sin(q2)*cos(q5) + sin(q5)*cos(htangle + q4)*cos(q2))*cos(q5))*u1 + u4)*Frame.x 
- framelength*(-u1*sin(htangle + q4)*cos(q2) + u2*cos(htangle + q4))*Frame.y
**********************************************************************
File 
"/home/sachin/sympyrepo/sympy/doc/src/modules/physics/mechanics/bicycle_example.rst",
 line 111, in bicycle_example.rst
Failed example:
    Frame_mc.v2pt_theory(WR_mc, N, Frame)
Expected:
    WRrad*(u1*sin(q2) + u3 + u4)*R.x - WRrad*u2*R.y + framecg3*(u1*sin(q2) + 
u4)*Frame.x + (-framecg1*(u1*cos(htangle + q4)*cos(q2) + u2*sin(htangle + q4)) 
- framecg3*(-u1*sin(htangle + q4)*cos(q2) + u2*cos(htangle + q4)))*Frame.y + 
framecg1*(u1*sin(q2) + u4)*Frame.z
Got:
    WRrad*(u1*sin(q2) + u3 + u4)*R.x - WRrad*u2*R.y + 
framecg3*((-(-sin(q2)*sin(q5) + cos(htangle + q4)*cos(q2)*cos(q5))*sin(q5) + 
(sin(q2)*cos(q5) + sin(q5)*cos(htangle + q4)*cos(q2))*cos(q5))*u1 + u4)*Frame.x 
+ (-framecg1*(((-sin(q2)*sin(q5) + cos(htangle + q4)*cos(q2)*cos(q5))*cos(q5) + 
(sin(q2)*cos(q5) + sin(q5)*cos(htangle + q4)*cos(q2))*sin(q5))*u1 + 
u2*sin(htangle + q4)) - framecg3*(-u1*sin(htangle + q4)*cos(q2) + 
u2*cos(htangle + q4)))*Frame.y + framecg1*((-(-sin(q2)*sin(q5) + cos(htangle + 
q4)*cos(q2)*cos(q5))*sin(q5) + (sin(q2)*cos(q5) + sin(q5)*cos(htangle + 
q4)*cos(q2))*cos(q5))*u1 + u4)*Frame.z
**********************************************************************
File 
"/home/sachin/sympyrepo/sympy/doc/src/modules/physics/mechanics/bicycle_example.rst",
 line 113, in bicycle_example.rst
Failed example:
    Fork_mc.v2pt_theory(Steer, N, Fork)
Expected:
    WRrad*(u1*sin(q2) + u3 + u4)*R.x - WRrad*u2*R.y + framelength*(u1*sin(q2) + 
u4)*Frame.x - framelength*(-u1*sin(htangle + q4)*cos(q2) + u2*cos(htangle + 
q4))*Frame.y + forkcg3*((sin(q2)*cos(q5) + sin(q5)*cos(htangle + 
q4)*cos(q2))*u1 + u2*sin(htangle + q4)*sin(q5) + u4*cos(q5))*Fork.x + 
(-forkcg1*((-sin(q2)*sin(q5) + cos(htangle + q4)*cos(q2)*cos(q5))*u1 + 
u2*sin(htangle + q4)*cos(q5) - u4*sin(q5)) - forkcg3*(-u1*sin(htangle + 
q4)*cos(q2) + u2*cos(htangle + q4) + u5))*Fork.y + forkcg1*((sin(q2)*cos(q5) + 
sin(q5)*cos(htangle + q4)*cos(q2))*u1 + u2*sin(htangle + q4)*sin(q5) + 
u4*cos(q5))*Fork.z
Got:
    WRrad*(u1*sin(q2) + u3 + u4)*R.x - WRrad*u2*R.y + 
framelength*((-(-sin(q2)*sin(q5) + cos(htangle + q4)*cos(q2)*cos(q5))*sin(q5) + 
(sin(q2)*cos(q5) + sin(q5)*cos(htangle + q4)*cos(q2))*cos(q5))*u1 + u4)*Frame.x 
- framelength*(-u1*sin(htangle + q4)*cos(q2) + u2*cos(htangle + q4))*Frame.y + 
forkcg3*((sin(q2)*cos(q5) + sin(q5)*cos(htangle + q4)*cos(q2))*u1 + 
u2*sin(htangle + q4)*sin(q5) + u4*cos(q5))*Fork.x + 
(-forkcg1*((-sin(q2)*sin(q5) + cos(htangle + q4)*cos(q2)*cos(q5))*u1 + 
u2*sin(htangle + q4)*cos(q5) - u4*sin(q5)) - forkcg3*(-u1*sin(htangle + 
q4)*cos(q2) + u2*cos(htangle + q4) + u5))*Fork.y + forkcg1*((sin(q2)*cos(q5) + 
sin(q5)*cos(htangle + q4)*cos(q2))*u1 + u2*sin(htangle + q4)*sin(q5) + 
u4*cos(q5))*Fork.z
**********************************************************************
File 
"/home/sachin/sympyrepo/sympy/doc/src/modules/physics/mechanics/bicycle_example.rst",
 line 115, in bicycle_example.rst
Failed example:
    WF_mc.v2pt_theory(Steer, N, Fork)
Expected:
    WRrad*(u1*sin(q2) + u3 + u4)*R.x - WRrad*u2*R.y + framelength*(u1*sin(q2) + 
u4)*Frame.x - framelength*(-u1*sin(htangle + q4)*cos(q2) + u2*cos(htangle + 
q4))*Frame.y + forkoffset*((sin(q2)*cos(q5) + sin(q5)*cos(htangle + 
q4)*cos(q2))*u1 + u2*sin(htangle + q4)*sin(q5) + u4*cos(q5))*Fork.x + 
(forklength*((-sin(q2)*sin(q5) + cos(htangle + q4)*cos(q2)*cos(q5))*u1 + 
u2*sin(htangle + q4)*cos(q5) - u4*sin(q5)) - forkoffset*(-u1*sin(htangle + 
q4)*cos(q2) + u2*cos(htangle + q4) + u5))*Fork.y - forklength*((sin(q2)*cos(q5) 
+ sin(q5)*cos(htangle + q4)*cos(q2))*u1 + u2*sin(htangle + q4)*sin(q5) + 
u4*cos(q5))*Fork.z
Got:
    WRrad*(u1*sin(q2) + u3 + u4)*R.x - WRrad*u2*R.y + 
framelength*((-(-sin(q2)*sin(q5) + cos(htangle + q4)*cos(q2)*cos(q5))*sin(q5) + 
(sin(q2)*cos(q5) + sin(q5)*cos(htangle + q4)*cos(q2))*cos(q5))*u1 + u4)*Frame.x 
- framelength*(-u1*sin(htangle + q4)*cos(q2) + u2*cos(htangle + q4))*Frame.y + 
forkoffset*((sin(q2)*cos(q5) + sin(q5)*cos(htangle + q4)*cos(q2))*u1 + 
u2*sin(htangle + q4)*sin(q5) + u4*cos(q5))*Fork.x + 
(forklength*((-sin(q2)*sin(q5) + cos(htangle + q4)*cos(q2)*cos(q5))*u1 + 
u2*sin(htangle + q4)*cos(q5) - u4*sin(q5)) - forkoffset*(-u1*sin(htangle + 
q4)*cos(q2) + u2*cos(htangle + q4) + u5))*Fork.y - forklength*((sin(q2)*cos(q5) 
+ sin(q5)*cos(htangle + q4)*cos(q2))*u1 + u2*sin(htangle + q4)*sin(q5) + 
u4*cos(q5))*Fork.z
**********************************************************************
File 
"/home/sachin/sympyrepo/sympy/doc/src/modules/physics/mechanics/bicycle_example.rst",
 line 117, in bicycle_example.rst
Failed example:
    WF_cont.v2pt_theory(WF_mc, N, WF)
Expected:
    WRrad*(u1*sin(q2) + u3 + u4)*R.x - WRrad*u2*R.y + framelength*(u1*sin(q2) + 
u4)*Frame.x - framelength*(-u1*sin(htangle + q4)*cos(q2) + u2*cos(htangle + 
q4))*Frame.y + (-WFrad*(sin(q2)*cos(q5) + sin(q5)*cos(htangle + 
q4)*cos(q2))*((-sin(q2)*sin(q5) + cos(htangle + q4)*cos(q2)*cos(q5))*u1 + 
u2*sin(htangle + q4)*cos(q5) - u4*sin(q5))/sqrt((-sin(q2)*cos(q5) - 
sin(q5)*cos(htangle + q4)*cos(q2))*(sin(q2)*cos(q5) + sin(q5)*cos(htangle + 
q4)*cos(q2)) + 1) + forkoffset*((sin(q2)*cos(q5) + sin(q5)*cos(htangle + 
q4)*cos(q2))*u1 + u2*sin(htangle + q4)*sin(q5) + u4*cos(q5)))*Fork.x + 
(forklength*((-sin(q2)*sin(q5) + cos(htangle + q4)*cos(q2)*cos(q5))*u1 + 
u2*sin(htangle + q4)*cos(q5) - u4*sin(q5)) - forkoffset*(-u1*sin(htangle + 
q4)*cos(q2) + u2*cos(htangle + q4) + u5))*Fork.y + (WFrad*(sin(q2)*cos(q5) + 
sin(q5)*cos(htangle + q4)*cos(q2))*(-u1*sin(htangle + q4)*cos(q2) + 
u2*cos(htangle + q4) + u5)/sqrt((-sin(q2)*cos(q5) - sin(q5)*cos(htangle + 
q4)*cos(q2))*(sin(q2)*cos(q5) + sin(q5)*cos(htangle + q4)*cos(q2)) + 1) - 
forklength*((sin(q2)*cos(q5) + sin(q5)*cos(htangle + q4)*cos(q2))*u1 + 
u2*sin(htangle + q4)*sin(q5) + u4*cos(q5)))*Fork.z - 
WFrad*((-sin(q2)*sin(q5)*cos(htangle + q4) + cos(q2)*cos(q5))*u6 + u4*cos(q2) + 
u5*sin(htangle + q4)*sin(q2))/sqrt((-sin(q2)*cos(q5) - sin(q5)*cos(htangle + 
q4)*cos(q2))*(sin(q2)*cos(q5) + sin(q5)*cos(htangle + q4)*cos(q2)) + 1)*Y.x + 
WFrad*(u2 + u5*cos(htangle + q4) + u6*sin(htangle + 
q4)*sin(q5))/sqrt((-sin(q2)*cos(q5) - sin(q5)*cos(htangle + 
q4)*cos(q2))*(sin(q2)*cos(q5) + sin(q5)*cos(htangle + q4)*cos(q2)) + 1)*Y.y
Got:
    WRrad*(u1*sin(q2) + u3 + u4)*R.x - WRrad*u2*R.y + 
framelength*((-(-sin(q2)*sin(q5) + cos(htangle + q4)*cos(q2)*cos(q5))*sin(q5) + 
(sin(q2)*cos(q5) + sin(q5)*cos(htangle + q4)*cos(q2))*cos(q5))*u1 + u4)*Frame.x 
- framelength*(-u1*sin(htangle + q4)*cos(q2) + u2*cos(htangle + q4))*Frame.y + 
(-WFrad*(sin(q2)*cos(q5) + sin(q5)*cos(htangle + 
q4)*cos(q2))*((-sin(q2)*sin(q5) + cos(htangle + q4)*cos(q2)*cos(q5))*u1 + 
u2*sin(htangle + q4)*cos(q5) - u4*sin(q5))/sqrt((-sin(q2)*cos(q5) - 
sin(q5)*cos(htangle + q4)*cos(q2))*(sin(q2)*cos(q5) + sin(q5)*cos(htangle + 
q4)*cos(q2)) + 1) + forkoffset*((sin(q2)*cos(q5) + sin(q5)*cos(htangle + 
q4)*cos(q2))*u1 + u2*sin(htangle + q4)*sin(q5) + u4*cos(q5)))*Fork.x + 
(forklength*((-sin(q2)*sin(q5) + cos(htangle + q4)*cos(q2)*cos(q5))*u1 + 
u2*sin(htangle + q4)*cos(q5) - u4*sin(q5)) - forkoffset*(-u1*sin(htangle + 
q4)*cos(q2) + u2*cos(htangle + q4) + u5))*Fork.y + (WFrad*(sin(q2)*cos(q5) + 
sin(q5)*cos(htangle + q4)*cos(q2))*(-u1*sin(htangle + q4)*cos(q2) + 
u2*cos(htangle + q4) + u5)/sqrt((-sin(q2)*cos(q5) - sin(q5)*cos(htangle + 
q4)*cos(q2))*(sin(q2)*cos(q5) + sin(q5)*cos(htangle + q4)*cos(q2)) + 1) - 
forklength*((sin(q2)*cos(q5) + sin(q5)*cos(htangle + q4)*cos(q2))*u1 + 
u2*sin(htangle + q4)*sin(q5) + u4*cos(q5)))*Fork.z - 
WFrad*(((-sin(q2)*sin(q5)*cos(htangle + q4) + cos(q2)*cos(q5))*cos(q5) - 
(-sin(q2)*cos(htangle + q4)*cos(q5) - sin(q5)*cos(q2))*sin(q5))*u4 + 
(-sin(q2)*sin(q5)*cos(htangle + q4) + cos(q2)*cos(q5))*u6 + u5*sin(htangle + 
q4)*sin(q2))/sqrt((-sin(q2)*cos(q5) - sin(q5)*cos(htangle + 
q4)*cos(q2))*(sin(q2)*cos(q5) + sin(q5)*cos(htangle + q4)*cos(q2)) + 1)*Y.x + 
WFrad*(u2 + u5*cos(htangle + q4) + u6*sin(htangle + 
q4)*sin(q5))/sqrt((-sin(q2)*cos(q5) - sin(q5)*cos(htangle + 
q4)*cos(q2))*(sin(q2)*cos(q5) + sin(q5)*cos(htangle + q4)*cos(q2)) + 1)*Y.y
**********************************************************************
1 items had failures:
   5 of  88 in bicycle_example.rst
***Test Failed*** 5 failures.
============================== rst doctests start ==============================
executable:         /usr/bin/python  (2.7.3-final-0) [CPython]
architecture:       64-bit
cache:              yes
ground types:       python 
hash randomization: on (PYTHONHASHSEED=3612625011)

epo/sympy/doc/src/modules/physics/mechanics/bicycle_example.rst [88]         [5]

DO *NOT* COMMIT!

Reply via email to