mailr18303 - /trunk/specific_fns/n_state_model.py


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

Header


Content

Posted by edward on January 24, 2013 - 14:21:
Author: bugman
Date: Thu Jan 24 14:21:42 2013
New Revision: 18303

URL: http://svn.gna.org/viewcvs/relax?rev=18303&view=rev
Log:
The N-state model _check_rdcs() method now skips deselected interatomic data 
containers.

A FIXME comment has also been added to highlight a possible future problem.


Modified:
    trunk/specific_fns/n_state_model.py

Modified: trunk/specific_fns/n_state_model.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_fns/n_state_model.py?rev=18303&r1=18302&r2=18303&view=diff
==============================================================================
--- trunk/specific_fns/n_state_model.py (original)
+++ trunk/specific_fns/n_state_model.py Thu Jan 24 14:21:42 2013
@@ -412,7 +412,12 @@
         @return:            True if the RDCs should be used, False otherwise.
         """
 
+        # Skip deselected interatomic data containers.
+        if not interatom.select:
+            return False
+
         # Skip deselected spins.
+        # FIXME:  These checks could be fatal in the future if a user has 
good RDCs and one of the two spins are deselected!
         if not spin1.select or not spin2.select:
             return False
 




Related Messages


Powered by MHonArc, Updated Thu Jan 24 15:00:02 2013