mailr22531 - /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 edward on March 26, 2014 - 16:14:
Author: bugman
Date: Wed Mar 26 16:14:18 2014
New Revision: 22531

URL: http://svn.gna.org/viewcvs/relax?rev=22531&view=rev
Log:
Improvements for the pipe_control.mol_res_spin.generate_spin_id_unique() 
function.

The unique spin ID now takes into account if the molecule is named or not 
(for single molecules).
This allows the function to be used when dealing with the structural data 
rather than the molecule,
residue, and spin data structure.


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=22531&r1=22530&r2=22531&view=diff
==============================================================================
--- trunk/pipe_control/mol_res_spin.py  (original)
+++ trunk/pipe_control/mol_res_spin.py  Wed Mar 26 16:14:18 2014
@@ -1423,6 +1423,8 @@
     # Get the containers if needed.
     if mol == None:
         mol = return_molecule_by_name(pipe_cont=pipe_cont, mol_name=mol_name)
+        if mol == None and len(pipe_cont.mol) == 1 and pipe_cont.mol[0].name 
== None:
+            mol_name = None
     if mol != None and res == None:
         if res_name != None or res_num != None:
             res = return_residue_by_info(mol=mol, res_name=res_name, 
res_num=res_num)




Related Messages


Powered by MHonArc, Updated Wed Mar 26 16:40:02 2014