mailr4863 - /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 21, 2008 - 11:28:
Author: bugman
Date: Mon Jan 21 11:28:45 2008
New Revision: 4863

URL: http://svn.gna.org/viewcvs/relax?rev=4863&view=rev
Log:
These are the changes that should have been in r4861!


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=4863&r1=4862&r2=4863&view=diff
==============================================================================
--- branches/N_state_model/specific_fns/n_state_model.py (original)
+++ branches/N_state_model/specific_fns/n_state_model.py Mon Jan 21 11:28:45 
2008
@@ -123,7 +123,7 @@
             alpha[i] = param_vector[cdp.N-1 + 3*i]
             beta[i] = param_vector[cdp.N-1 + 3*i + 1]
             gamma[i] = param_vector[cdp.N-1 + 3*i + 2]
-        
+
 
     def grid_search(self, lower, upper, inc, constraints=False, verbosity=0, 
sim_index=None):
         """The grid search function.
@@ -524,6 +524,23 @@
             raise RelaxNoTensorError, ('alignment', tensor)
 
 
+     def set_non_spin_params(self, value=None, param=None):
+         """Function for setting all the N-state model parameter values.
+
+         @param value:   The parameter values.
+         @type value:    None, number, or list of numbers
+         @param param:   The parameter names.
+         @type param:    None, str, or list of str
+         """
+
+         # Alias the current data pipe.
+         cdp = relax_data_store[relax_data_store.current_pipe]
+
+         # Test if the N-state model has been set up.
+         if not hasattr(cdp, 'N'):
+             raise RelaxNoModelError, 'N-state'
+
+
     def set_type(self, tensor=None, red=None):
         """Set the whether the given tensor is the full or reduced tensor.
 




Related Messages


Powered by MHonArc, Updated Mon Jan 21 11:40:06 2008