Difference between revisions of "Measure Distance"

From PyMOLWiki
Jump to: navigation, search
 
Line 7: Line 7:
 
</source>
 
</source>
  
[[Category:Scripting_Script_Library|Measure Distance]]
+
[[Category:Script_Library|Measure Distance]]

Revision as of 17:26, 6 May 2005

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()