On 6/30/11 2:50 AM, 刘吉元 wrote: > I want to run the loop_refine.py for a parallel job,so I change > loop_refine.py in the Tutorial example and build myloop.py in the same > directory,but when I run loop_refine.py,I got the error: > "Traceback <most recent all last>: > File "D:\modeller\loop_modeling\loop_refine.py",line 42,in <module> > sequence='pp2a'> #code of the target > TypeError: this constructor takes no arguments"
... > ------------------myloop.py---------------------------------- > # Create a new class based on 'loopmodel' so that we can redefine > # select_loop_atoms (necessary) > class MyLoop():
You need to make MyLoop a subclass of loopmodel - compare your script with the examples. In particular, that line should read
class MyLoop(loopmodel):
Ben Webb, Modeller Caretaker