Difference between revisions of "Spin loop"

From relax wiki
Jump to navigation Jump to search
(Created page with "== View results per spin == # Looking at the contents of the '''spin viewer''' window in the GUI, # Opening a relax results or state XML file in a text editor, # Looking at th...")
 
Line 6: Line 6:
  
 
=== Looping ===
 
=== Looping ===
<source lang="python>
+
<source lang="python">
 
from pipe_control.mol_res_spin import spin_loop
 
from pipe_control.mol_res_spin import spin_loop
 
for spin, spin_id in spin_loop(return_id=True, skip_desel=True):
 
for spin, spin_id in spin_loop(return_id=True, skip_desel=True):
 
     print("Spin '%s', model '%s'" % (spin_id, spin.model))
 
     print("Spin '%s', model '%s'" % (spin_id, spin.model))
 
</source>
 
</source>
 +
 
== See also ==
 
== See also ==
 
[[Category:Results]]
 
[[Category:Results]]

Revision as of 13:56, 17 June 2013

View results per spin

  1. Looking at the contents of the spin viewer window in the GUI,
  2. Opening a relax results or state XML file in a text editor,
  3. Looking at the cdp.mol[i].res[j].spin[k] data structure.


Looping

from pipe_control.mol_res_spin import spin_loop
for spin, spin_id in spin_loop(return_id=True, skip_desel=True):
    print("Spin '%s', model '%s'" % (spin_id, spin.model))

See also