mailr3520 - /1.3/generic_fns/spin.py


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

Header


Content

Posted by edward on November 11, 2007 - 23:03:
Author: bugman
Date: Sun Nov 11 23:03:17 2007
New Revision: 3520

URL: http://svn.gna.org/viewcvs/relax?rev=3520&view=rev
Log:
Small simplification to the generic_fns.spin.create() function.


Modified:
    1.3/generic_fns/spin.py

Modified: 1.3/generic_fns/spin.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/spin.py?rev=3520&r1=3519&r2=3520&view=diff
==============================================================================
--- 1.3/generic_fns/spin.py (original)
+++ 1.3/generic_fns/spin.py Sun Nov 11 23:03:17 2007
@@ -128,15 +128,12 @@
     if not relax_data_store.current_pipe:
         raise RelaxNoPipeError
 
-    # Alias the current data pipe.
-    cdp = relax_data_store[relax_data_store.current_pipe]
-
     # No residue to add the spin to.
     res_to_cont = return_residue(res_id)
     if res_to_cont == None and res_id:
         raise RelaxError, "The residue in " + `res_id` + " does not exist in 
the current data pipe."
     elif res_to_cont == None:
-        res_to_cont = cdp.mol[0].res[0]
+        res_to_cont = 
relax_data_store[relax_data_store.current_pipe].mol[0].res[0]
 
     # Test if the spin number already exists.
     for i in xrange(len(res_to_cont.spin)):




Related Messages


Powered by MHonArc, Updated Sun Nov 11 23:20:13 2007