[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [modeller_usage] Python Modeller Script
- To: Ricardo Nicoluci <nicoluci AT gmail.com>
- Subject: Re: [modeller_usage] Python Modeller Script
- From: Modeller Caretaker <modeller-care@ucsf.edu>
- Date: Tue, 27 Sep 2005 14:17:34 -0700
- Cc: modeller_usage@listsrv.ucsf.edu
Ricardo Nicoluci wrote:
We used to have a script for modeller in the old type way. Now we
translated it to python mode, but the function automodel.generate_method
and automodel.rand_method are not working properly. The following error
occurs:
TypeError: 'str' object is not callable
You seem to have forgotten to attach the Python script, but it looks
like you've tried to do something like
a.generate_method = 'TRANSFER_XYZ'
which won't work. Both generate_method and rand_method take Python
subroutines as arguments, not strings. So the (working) equivalent of
this would be
a.generate_method = generate.transfer_xyz
See http://salilab.org/modeller/manual/node39.html and
http://salilab.org/modeller/manual/node40.html
Ben Webb, Modeller Caretaker
--
modeller-care@ucsf.edu http://www.salilab.org/modeller/
Modeller mail list: http://salilab.org/mailman/listinfo/modeller_usage