mailr6590 - /1.3/generic_fns/sequence.py


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

Header


Content

Posted by edward on June 29, 2008 - 15:55:
Author: bugman
Date: Sun Jun 29 15:10:12 2008
New Revision: 6590

URL: http://svn.gna.org/viewcvs/relax?rev=6590&view=rev
Log:
Fix for the copy() function, only the sequence is copied and not the contents 
of the SpinContainer.


Modified:
    1.3/generic_fns/sequence.py

Modified: 1.3/generic_fns/sequence.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/sequence.py?rev=6590&r1=6589&r2=6590&view=diff
==============================================================================
--- 1.3/generic_fns/sequence.py (original)
+++ 1.3/generic_fns/sequence.py Sun Jun 29 15:10:12 2008
@@ -64,8 +64,10 @@
     if exists_mol_res_spin_data(pipe_to):
         raise RelaxSequenceError
 
-    # Copy the data.
-    ds[pipe_to].mol = deepcopy(ds[pipe_from].mol)
+    # Loop over the spins.
+    for spin, mol_name, res_num, res_name in spin_loop(full_info=True):
+        # Generate the new sequence.
+        generate(pipe_to, mol_name, res_num, res_name, spin.num, spin.name)
 
 
 def display(sep=None, mol_name_flag=False, res_num_flag=False, 
res_name_flag=False, spin_num_flag=False, spin_name_flag=False):




Related Messages


Powered by MHonArc, Updated Sun Jun 29 16:00:20 2008