Author: bugman
Date: Wed Jan  9 15:13:44 2008
New Revision: 4554

URL: http://svn.gna.org/viewcvs/relax?rev=4554&view=rev
Log:
Added a stub for the assemble_param_vector() method.  It doesn't create the 
vector yet.


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=4554&r1=4553&r2=4554&view=diff
==============================================================================
--- branches/N_state_model/specific_fns/n_state_model.py (original)
+++ branches/N_state_model/specific_fns/n_state_model.py Wed Jan  9 15:13:44 
2008
@@ -21,6 +21,7 @@
 ###############################################################################
 
 # Python module imports.
+from numpy import array, float64
 from re import search
 
 # relax module imports.
@@ -33,6 +34,22 @@
 class N_state_model(Common_functions):
     def __init__(self):
         """Class containing functions for the N-state model."""
+
+
+    def assemble_param_vector(self, sim_index):
+        """Assemble all the parameters of the model into a single array."""
+
+        # Initialise.
+        param_vector = []
+
+        # Alias the current data pipe.
+        cdp = relax_data_store[relax_data_store.current_pipe]
+
+        # The probabilities.
+        #for i in xrange(len(cdp.align
+
+        # Return a numpy arrary.
+        return array(param_vector, float64)
 
 
     def grid_search(self, lower, upper, inc, constraints=False, verbosity=0, 
sim_index=None):


_______________________________________________
relax (http://nmr-relax.com)

This is the relax-commits mailing list
relax-commits@gna.org

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to