mailr17019 - /trunk/generic_fns/bmrb.py


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

Header


Content

Posted by edward on June 21, 2012 - 22:05:
Author: bugman
Date: Thu Jun 21 22:05:06 2012
New Revision: 17019

URL: http://svn.gna.org/viewcvs/relax?rev=17019&view=rev
Log:
Removal of a hack from the generic_fns.bmrb.generate_sequence() function.

This hack was for naming unnamed spins.  But this is not needed as the
generic_fns.mol_res_spin.create_spin() function already does this but with 
many more safety checks.


Modified:
    trunk/generic_fns/bmrb.py

Modified: trunk/generic_fns/bmrb.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/generic_fns/bmrb.py?rev=17019&r1=17018&r2=17019&view=diff
==============================================================================
--- trunk/generic_fns/bmrb.py (original)
+++ trunk/generic_fns/bmrb.py Thu Jun 21 22:05:06 2012
@@ -96,22 +96,6 @@
         if spin:
             continue
 
-        # The residue container.
-        if not mol_names:
-            res_id = generate_spin_id(res_num=res_nums[i], 
res_name=res_names[i])
-        else:
-            res_id = generate_spin_id(mol_name=mol_names[i], 
res_num=res_nums[i], res_name=res_names[i])
-
-        # The spin container needs to be named.
-        res_cont = return_residue(res_id)
-        if res_cont and len(res_cont.spin) == 1 and res_cont.spin[0].name == 
None and res_cont.spin[0].num == None:
-            # Name and number the spin.
-            res_cont.spin[0].name = spin_names[i]
-            res_cont.spin[0].num = spin_nums[i]
-
-            # Jump to the next spin.
-            continue
-
         # Create the spin.
         create_spin(spin_num=spin_nums[i], spin_name=spin_names[i], 
res_num=res_nums[i], res_name=res_names[i], mol_name=mol_names[i])
 




Related Messages


Powered by MHonArc, Updated Thu Jun 21 22:20:02 2012