[MMTK] Re: The use of ions.

Konrad Hinsen hinsen@cnrs-orleans.fr
18 Jul 2002 06:40:46 +0200


Julien MOZZICONACCI <pipo@lptl.jussieu.fr> writes:

> In fact, a problem raised. I send to you this Traceback because I really 
> don't know how to get rid of it.
>  
> Traceback (most recent call last):
>   File "test_database.py", line 24, in ?
>     universe.addObject(configuration.createMolecules(names = 'water'))
>   File "/usr/lib/python2.2/site-packages/MMTK/PDB.py", line 220, in createMolecules
>     if names is None or name in names or full_name in names:
> TypeError: 'in <string>' requires character as left operand

It should be
     names=['water']
i.e. the argument is a list of molecule names. 

Konrad.
-- 
-------------------------------------------------------------------------------
Konrad Hinsen                            | E-Mail: hinsen@cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24
Rue Charles Sadron                       | Fax:  +33-2.38.63.15.17
45071 Orleans Cedex 2                    | Deutsch/Esperanto/English/
France                                   | Nederlands/Francais
-------------------------------------------------------------------------------