Re: [PyMOL] External file for writing with multiple data

2016-10-13 Thread Tsjerk Wassenaar
Hi Daniel, Use \t in stead of \n to separate the numbers from one measurement with tabs, in stead of newlines. Do write one newline before the new series: f.write('\n') However, you might want to be a bit smarter in writing code. So you're trying to get one angle for all states?: f =

[PyMOL] External file for writing with multiple data

2016-10-13 Thread Daniel Munoz Escudero
Hello! I'm trying to get multiple measures of angles and distances between some residues for 232 states of the same molecule in PyMOL . I'm using this command for that: f=open('NE_S_C.txt','w') var1=cmd.get_angle('39/NE2', '144/SG', '221/C', 1) f.write("%8.3f\n"%var1)