mailr8910 - /1.3/generic_fns/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 06, 2009 - 11:05:
Author: bugman
Date: Fri Mar  6 11:05:09 2009
New Revision: 8910

URL: http://svn.gna.org/viewcvs/relax?rev=8910&view=rev
Log:
Bug fix for the spin.copy() user function.

Non-empty spin containers are no longer overwritten if the name and num are 
set to None.


Modified:
    1.3/generic_fns/mol_res_spin.py

Modified: 1.3/generic_fns/mol_res_spin.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/mol_res_spin.py?rev=8910&r1=8909&r2=8910&view=diff
==============================================================================
--- 1.3/generic_fns/mol_res_spin.py (original)
+++ 1.3/generic_fns/mol_res_spin.py Fri Mar  6 11:05:09 2009
@@ -685,7 +685,7 @@
         res_to_cont = pipe.mol[0].res[0]
 
     # Copy the data.
-    if res_to_cont.spin[0].num == None and res_to_cont.spin[0].name == None 
and len(res_to_cont.spin) == 1:
+    if len(res_to_cont.spin) == 1 and res_to_cont.spin[0].is_empty():
         res_to_cont.spin[0] = spin_from_cont.__clone__()
     else:
         res_to_cont.spin.append(spin_from_cont.__clone__())




Related Messages


Powered by MHonArc, Updated Fri Mar 06 11:20:03 2009