Dear prof.
I used a piece of python code that reverses a trajectory named xtcrev.py
((c)2011 Tsjerk A. Wassenaar), I have one problem when I ran it as following:
./xtcrev.py 1a.xtc > 1a-rev.xtc
it's error is:
Traceback (most recent call last):
File "./xtcrev.py", line 54, in <module>
n = 92 + i(f.read(84)[-4:]) # Size of frame in bytes
File "./xtcrev.py", line 24, in i
def i(x): return sum([ord(x[j])<<(24-j*8) for j in range(4)])
IndexError: string index out of range
May I ask you to help me pease?
Thank you very much in advance.
Best Regards
Sara
--
gmx-users mailing list gmx-users@gromacs.org
http://lists.gromacs.org/mailman/listinfo/gmx-users
Please search the archive at
http://www.gromacs.org/Support/Mailing_Lists/Search before posting!
Please don't post (un)subscribe requests to the list. Use the
www interface or send it to gmx-users-requ...@gromacs.org.
Can't post? Read http://www.gromacs.org/Support/Mailing_Lists