[MMTK] Vector Madness
hinsen at cnrs-orleans.fr
hinsen at cnrs-orleans.fr
Fri Sep 22 09:00:36 CEST 2006
On 22.09.2006, at 06:07, Dr. Seth Olsen wrote:
> Traceback (most recent call last):
> File "<stdin>", line 416, in ?
> File "<stdin>", line 413, in main
> File "<stdin>", line 348, in VMDDump
> File "<stdin>", line 272, in VMDVectorLines
> File "/usr/lib/python2.4/site-packages/Scientific/Geometry/
> VectorModule.py", line 72, in __add__
> return Vector(self.array+other.array)
> AttributeError: 'function' object has no attribute 'array'
The cause is in line 345 of your file:
VMDlines.extend(self.VMDVectorLines('TDid','ElectronicTD',
self.tdvector/
(10*MMTK.Units.D),
self.mol.centerOfMass,
"'black'"))
If you put parentheses after self.mol.centerOfMass, it has a much
better chance of working! As it is, you are trying to add the method
self.mol.centerOfMass to a vector...
Konrad.
--
---------------------------------------------------------------------
Konrad Hinsen
Centre de Biophysique Moléculaire, CNRS Orléans
Synchrotron Soleil - Division Expériences
Saint Aubin - BP 48
91192 Gif sur Yvette Cedex, France
Tel. +33-1 69 35 97 15
E-Mail: hinsen at cnrs-orleans.fr
---------------------------------------------------------------------
More information about the mmtk
mailing list