mailr25685 - /trunk/pipe_control/mol_res_spin.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by tlinnet on September 08, 2014 - 18:49:
Author: tlinnet
Date: Mon Sep  8 18:49:34 2014
New Revision: 25685

URL: http://svn.gna.org/viewcvs/relax?rev=25685&view=rev
Log:
For the user function, spin.display(), added the print out of spin id, and 
status for selection.

This is to help with showing the spin id string for selection, and the 
current status of selection.

task #7826(https://gna.org/task/index.php?7826): Write an python class for 
the repeated analysis of dispersion data.

Modified:
    trunk/pipe_control/mol_res_spin.py

Modified: trunk/pipe_control/mol_res_spin.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/mol_res_spin.py?rev=25685&r1=25684&r2=25685&view=diff
==============================================================================
--- trunk/pipe_control/mol_res_spin.py  (original)
+++ trunk/pipe_control/mol_res_spin.py  Mon Sep  8 18:49:34 2014
@@ -1141,12 +1141,12 @@
     """
 
     # Print a header.
-    print("\n\n%-15s %-15s %-15s %-15s %-15s" % ("Molecule", "Res number", 
"Res name", "Spin number", "Spin name"))
+    print("\n\n%-15s %-15s %-15s %-15s %-15s %-15s %-15s" % ("Molecule", 
"Res number", "Res name", "Spin number", "Spin name", "Spin id", "Selected"))
 
     # Spin loop.
-    for spin, mol_name, res_num, res_name in spin_loop(spin_id, 
full_info=True):
+    for spin, mol_name, res_num, res_name, spin_id in spin_loop(spin_id, 
full_info=True, return_id=True, skip_desel=False):
         # Print the residue data.
-        print("%-15s %-15s %-15s %-15s %-15s" % (mol_name, repr(res_num), 
res_name, repr(spin.num), spin.name))
+        print("%-15s %-15s %-15s %-15s %-15s %-15s %-15s" % (mol_name, 
repr(res_num), res_name, repr(spin.num), spin.name, spin_id, spin.select))
 
 
 def exists_mol_res_spin_data(pipe=None):




Related Messages


Powered by MHonArc, Updated Mon Sep 08 19:00:02 2014