Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 2693 by [email protected]: Comparable issue in
sympy/core/numbers.py
http://code.google.com/p/sympy/issues/detail?id=2693
The Python Multibody (Dynamics) software PyMbs uses Sympy for symbolic
preprocessing of equations. At some point I received an error
message "Object has no attribute 'is_comparable'.", where the object
happened to be a Sympy.Matrix. With the following modification (checking
for attribute existence) at line 761 in sympy/core/numbers.py the software
performed fine (the return value then defaults to False):
#if other.is_comparable and not isinstance(other, Rational):
if hasattr(other,'is_comparable') and \
other.is_comparable and not isinstance(other, Rational):
other = other.evalf()
Is this an ad-hoc solution (that happened to work for me) or a structural
one...?
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.