Hi all,
I am interested in using the HelAnal module in MDAnalysis. I am trying to run some simple tests before using it on MD trajectories, but I find an error message that I cannot figure out. My very simple script is:
import MDAnalysis
import MDAnalysis.analysis.helanal
u = MDAnalysis.Universe("helix5.pdb")
MDAnalysis.analysis.helanal.helanal_main("helix5.pdb", selection='name CA', start=192, end=223, ref_axis=None, permissive=False)
I get the following message:
Analysing 32/32 residues
[ 0.03710163 -0.38496059 -0.92218697]
[ 0.03710163 -0.38496059 -0.92218697]
Traceback (most recent call last):
File "mytest.py", line 4, in <module>
MDAnalysis.analysis.helanal.helanal_main("helix5.pdb", selection='name CA', start=192, end=223, ref_axis=None, permissive=False)
File "/Library/Python/2.7/site-packages/MDAnalysis-0.7.7-py2.7-macosx-10.8-intel.egg/MDAnalysis/analysis/helanal.py", line 509, in helanal_main
if i == j:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
(I printed the values of i and j right before line 509 in helanal.py; these are the two arrays at the top of the message).
I have googled the message, but all references I find refer to how NumPy compare arrays. So I am pretty sure that there is something wrong in my script. I have been trying all what I could think of, but I am stuck.
Does anybody know where is the error?
Thanks in advance,
Xavier