Measure Distance: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
== See Also == | == See Also == | ||
[[ | [[Distance]] | ||
[[Category:Script_Library|Measure Distance]] | [[Category:Script_Library|Measure Distance]] |
Revision as of 02:03, 23 February 2007
# This script writes the distance from
# atom mol1///25/ha to atom mol1///26/ha
# out to the file "dist.txt"
# Simply change your selections to see different distances.
from pymol import cmd
f=open('dist.txt','w')
dst=cmd.distance('tmp','mol1///25/ha','mol1///26/ha')
f.write("%8.3f\n"%dst)
f.close()