Measure Distance: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 7: Line 7:
</source>
</source>


[[Category:Scripting_Script_Library|Measure Distance]]
[[Category:Script_Library|Measure Distance]]

Revision as of 16: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()