From: gilleain t. <gil...@ho...> - 2004-10-13 17:48:18
|
I guess this might seem obvious to some people, but I wanted to use Vectors and Objects3D from pymol scripts, but I couldn't see how. however, it turns out that if you copy the entire (python) source tree of Scientific - IE: "ScientificPython<version>/Scientific/" into "/Applications/PyMolX11blahHybridetc/py23/lib/python2.3/site-packages" (er..and restart pymol (this foxed me for a while :) ) you can say : from Scientific.Geometry import Vector print Vector((0,0,0)) and get [0 0 0] hopefully! Anyway, there might be a better way, but this works. One tiny glitch is the change from Numeric to numarray. This can be 'fixed' ('hacked') by using *cough*perl*cough*: perl -i -p -e 's/Numeric/numarray/g' *.py */*.py which should substitiute all instances of 'Numeric' with 'numarray'. gilleain torrance |