Scripts: pblengths.py

File pblengths.py, 237 bytes (added by goddard, 9 years ago)
Line 
1# Print lengths of currently selected pseudobonds
2from chimera import selection
3pbonds = selection.currentPseudobonds()
4
5for pb in pbonds:
6 a1, a2 = pb.atoms
7 print ('%15s %15s %8.4g' % (a1.oslIdent(), a2.oslIdent(), pb.length()))