Permalink
Browse files

Update sympy/physics/mechanics/essential.py

  • Loading branch information...
1 parent 0d995e7 commit dec1ac7ab48d1b5451b391dd97f535437d0a5635 tsmars15 committed Nov 30, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 sympy/physics/mechanics/essential.py
View
3 sympy/physics/mechanics/essential.py
@@ -916,6 +916,7 @@ def _rot(axis, angle):
wvec = thetad * amounts[1].express(parent).normalize()
else:
try:
+ from sympy.polys.polyerrors import CoercionFailed,FlagError
from sympy.physics.mechanics.functions import kinematic_equations
q1, q2, q3 = amounts
u1, u2, u3 = dynamicsymbols('u1, u2, u3')
@@ -927,7 +928,7 @@ def _rot(axis, angle):
u2 = expand(td[u2])
u3 = expand(td[u3])
wvec = u1 * self.x + u2 * self.y + u3 * self.z
- except (ImportError, TypeError ):
+ except (CoercionFailed,AssertionError):
wvec = self._w_diff_dcm(parent)
self._ang_vel_dict.update({parent: wvec})
parent._ang_vel_dict.update({self: -wvec})

0 comments on commit dec1ac7

Please sign in to comment.