mailr17080 - /branches/interatomic/data/interatomic.py


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

Header


Content

Posted by edward on June 27, 2012 - 18:07:
Author: bugman
Date: Wed Jun 27 18:07:34 2012
New Revision: 17080

URL: http://svn.gna.org/viewcvs/relax?rev=17080&view=rev
Log:
The InteratomContainer.id_match() method now checks if the spins for the 
container exist.

This is needed for the InteratomList.add_item() method checks to see if the 
container already exists
prior to adding it.


Modified:
    branches/interatomic/data/interatomic.py

Modified: branches/interatomic/data/interatomic.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/interatomic/data/interatomic.py?rev=17080&r1=17079&r2=17080&view=diff
==============================================================================
--- branches/interatomic/data/interatomic.py (original)
+++ branches/interatomic/data/interatomic.py Wed Jun 27 18:07:34 2012
@@ -97,6 +97,10 @@
         # Get the spin containers.
         spin1 = generic_fns.mol_res_spin.return_spin(self.spin_id1)
         spin2 = generic_fns.mol_res_spin.return_spin(self.spin_id2)
+
+        # No spins.
+        if spin1 == None or spin2 == None:
+            return False
 
         # Check if the ID is in the private metadata list.
         if spin_id in spin1._spin_ids or spin_id in spin2._spin_ids:




Related Messages


Powered by MHonArc, Updated Thu Jun 28 10:40:03 2012