mailr18287 - /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 23, 2013 - 22:51:
Author: bugman
Date: Wed Jan 23 22:51:13 2013
New Revision: 18287

URL: http://svn.gna.org/viewcvs/relax?rev=18287&view=rev
Log:
Fix for a bug caught by the N_state_model.test_metal_pos_opt system test.

The problem was that uninitalised probability arrays of None from cdp.probs 
was always sent into the
target function, whereas None should be sent in instead.


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=18287&r1=18286&r2=18287&view=diff
==============================================================================
--- trunk/specific_fns/n_state_model.py (original)
+++ trunk/specific_fns/n_state_model.py Wed Jan 23 22:51:13 2013
@@ -1637,7 +1637,7 @@
 
         # The probabilities.
         probs = None
-        if hasattr(cdp, 'probs'):
+        if hasattr(cdp, 'probs') and len(cdp.probs) and cdp.probs[0] != None:
             probs = cdp.probs
 
         # Diagonal scaling.




Related Messages


Powered by MHonArc, Updated Wed Jan 23 23:00:02 2013