mailr9028 - /1.3/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 April 28, 2009 - 18:06:
Author: bugman
Date: Tue Apr 28 18:06:17 2009
New Revision: 9028

URL: http://svn.gna.org/viewcvs/relax?rev=9028&view=rev
Log:
Fix for the __assemble_scaling_matrix() method for the 'fixed' N-state model.


Modified:
    1.3/specific_fns/n_state_model.py

Modified: 1.3/specific_fns/n_state_model.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/n_state_model.py?rev=9028&r1=9027&r2=9028&view=diff
==============================================================================
--- 1.3/specific_fns/n_state_model.py (original)
+++ 1.3/specific_fns/n_state_model.py Tue Apr 28 18:06:17 2009
@@ -153,9 +153,10 @@
             pop_start = pop_start + 5*len(cdp.align_tensors)
 
         # Loop over the populations, and set the scaling factor.
-        factor = 100.0
-        for i in xrange(pop_start, pop_start + (cdp.N-1)):
-            scaling_matrix[i, i] = factor
+        if cdp.model in ['2-domain', 'population']:
+            factor = 100.0
+            for i in xrange(pop_start, pop_start + (cdp.N-1)):
+                scaling_matrix[i, i] = factor
 
         # Return the matrix.
         return scaling_matrix




Related Messages


Powered by MHonArc, Updated Tue Apr 28 19:40:02 2009