mailr4754 - /branches/N_state_model/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 15, 2008 - 15:41:
Author: bugman
Date: Tue Jan 15 15:41:34 2008
New Revision: 4754

URL: http://svn.gna.org/viewcvs/relax?rev=4754&view=rev
Log:
Fixed the code for creating the grid search options.


Modified:
    branches/N_state_model/specific_fns/n_state_model.py

Modified: branches/N_state_model/specific_fns/n_state_model.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/N_state_model/specific_fns/n_state_model.py?rev=4754&r1=4753&r2=4754&view=diff
==============================================================================
--- branches/N_state_model/specific_fns/n_state_model.py (original)
+++ branches/N_state_model/specific_fns/n_state_model.py Tue Jan 15 15:41:34 
2008
@@ -99,14 +99,14 @@
         # Set the grid search options.
         for i in xrange(n):
             # Probabilities (default values).
-            if cdp.params[i] == 'pc':
-                grid_ops.append([inc[m], 0.0, 1.0])
+            if search('^p', cdp.params[i]):
+                grid_ops.append([inc[i], 0.0, 1.0])
 
             # Angles (default values).
-            if cdp.params[i] == 'alpha' or cdp.params[i] == 'gamma':
-                grid_ops.append([inc[m], 0.0, 2*pi])
-            elif cdp.params[i] == 'beta':
-                grid_ops.append([inc[m], 0.0, pi])
+            if search('^alpha', cdp.params[i]) or search('^gamma', 
cdp.params[i]):
+                grid_ops.append([inc[i], 0.0, 2*pi])
+            elif search('^beta', cdp.params[i]):
+                grid_ops.append([inc[i], 0.0, pi])
 
             # Lower bound (if supplied).
             if lower:




Related Messages


Powered by MHonArc, Updated Tue Jan 15 16:00:12 2008