def setSymPyExpression(self, obj, expr):
        if hasattr(self, "SymPyType"):
            if not isinstance(expr, self.SymPyType):
                raise TypeError
            for p in self.getSymPyPropertiesList(obj):
                setattr(obj, p, spexpr2spstr(getattr(expr, p.lower())))

        else:
            obj.SymPyExpression = expr
 def setSymPyTransformation(self, obj, expr):
     if not isinstance(expr, EuclideanTransformation):
         raise TypeError
     obj.tvec = spexpr2spstr(expr.tvec)
     obj.rquat = spexpr2spstr(expr.rquat)
     obj.parity = spexpr2spstr(expr.parity)