It's a Python syntax problem. You have a leading space before those lines (all starting with rsr.add). Remember that in Python, white-space is important. Removing that space will make it work.
On Sat, Jun 18, 2011 at 8:01 PM, flavio seixas <">> wrote:
Hi,
I had sucessfull modelled a protein without restrains.
However, when I put alpha helix restrains in the script below I face this problem:
File "model-restriction-single.py", line 21
rsr.add(secondary_structure.alpha(self.residue_range('47:', '57:')))
^
IndentationError: unindent does not match any outer indentation level
I saw the script too many times and I am not able to see where the problem is.