[MMTK] VectorField

khinsen at cea.fr khinsen at cea.fr
Mon Jun 20 12:29:10 CEST 2005


On Jun 17, 2005, at 10:10, Nathalie Reuter wrote:

> Ok, now I did the modes calc. with 2.5 and I got a different error  
> message:
>
> File "vector_field.py", line 24, in ?
>   field = AtomicVectorField(universe, 0.3, modes[13])
> File  
> "/net/bccs/cbu/linux/PYTHON/Python-2.4.1/lib/python2.4/site-packages/ 
> MMTK/Field.py", line 256, in __init__
>   AtomicField.__init__(self, system, grid_size, values)
> File  
> "/net/bccs/cbu/linux/PYTHON/Python-2.4.1/lib/python2.4/site-packages/ 
> MMTK/Field.py", line 43, in __init__
>   self._setField(values)
> File  
> "/net/bccs/cbu/linux/PYTHON/Python-2.4.1/lib/python2.4/site-packages/ 
> MMTK/Field.py", line 80, in _setField
>   array[indices] = v
> AttributeError: Vector instance has no attribute '__float__'

Strange, that works fine for me. Which version of Numeric do you use? I  
have seen similar problems with Numeric 24, so I stick to 23.8, which  
works fine.

Konrad.




More information about the mmtk mailing list