mailr5479 - /1.3/data/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 April 09, 2008 - 11:19:
Author: bugman
Date: Wed Apr  9 11:06:56 2008
New Revision: 5479

URL: http://svn.gna.org/viewcvs/relax?rev=5479&view=rev
Log:
The SpinList add_item() method now uses the is_empty() method.


Modified:
    1.3/data/mol_res_spin.py

Modified: 1.3/data/mol_res_spin.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/data/mol_res_spin.py?rev=5479&r1=5478&r2=5479&view=diff
==============================================================================
--- 1.3/data/mol_res_spin.py (original)
+++ 1.3/data/mol_res_spin.py Wed Apr  9 11:06:56 2008
@@ -147,7 +147,7 @@
                 raise RelaxError, "The spin number '" + `spin_num` + "' 
already exists."
 
         # If no spin data exists, replace the empty first spin with this 
spin.
-        if len(self) == 1 and self[0].is_empty():
+        if self.is_empty():
             self[0].num = spin_num
             self[0].name = spin_name
             self[0].select = select




Related Messages


Powered by MHonArc, Updated Wed Apr 09 11:20:11 2008