[MMTK] VectorField
Nathalie Reuter
nathalie at cbu.uib.no
Mon Jun 20 16:26:42 CEST 2005
khinsen at cea.fr wrote:
> 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.
>
Yes indeed, I have Numeric-24.0b2. I'll try with 23.8. I'll let you know.
Thanks,
Nathalie
More information about the mmtk
mailing list