[wxPython-users] Read a memory position?

massimo s. devicerandom at gmail.com
Sat Nov 4 06:45:47 PST 2006


> You can find it in:
> 
>  
> 
> http://dirac.cnrs-orleans.fr/ScientificPython/ScientificPythonManual/Scientific.Geometry.Quaternion.Quaternion-class.html
> 
>  
> 
> The asRotation() method must return the rotation matrix from a 
> quaternion but instead of that,
> 
>  
> 
> it is returning:
> 
>  
> 
> <Scientific.Geometry.Transformation.Rotation instance at 0x01BC1580>
> 
>  
> 
> I don’t know how to read this and I need to get my matrix from there..

First of all, you should ask this question on the SciPy mailing list. 
This is the wxPython mailing list, it has little to do with SciPy.


Anyway, it seems that your function returns a custom Python object -a 
"Scientific.Geometry.Transformation.Rotation" object. You should check 
in the SciPy/Quaternion documentation how to access the attributes of 
that object.

Try saving the object in a variable (e.g. foo=blablabla.asRotation() )
and then looking at dir(foo) to see what attributes it has.

Good luck,

m.




More information about the wxpython-users mailing list