mailr6883 - /branches/rdc_analysis/maths_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 July 09, 2008 - 16:07:
Author: bugman
Date: Wed Jul  9 15:18:36 2008
New Revision: 6883

URL: http://svn.gna.org/viewcvs/relax?rev=6883&view=rev
Log:
The N_state_opt class now accepts the model, rdcs, and xh_vect arguments.


Modified:
    branches/rdc_analysis/maths_fns/n_state_model.py

Modified: branches/rdc_analysis/maths_fns/n_state_model.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/rdc_analysis/maths_fns/n_state_model.py?rev=6883&r1=6882&r2=6883&view=diff
==============================================================================
--- branches/rdc_analysis/maths_fns/n_state_model.py (original)
+++ branches/rdc_analysis/maths_fns/n_state_model.py Wed Jul  9 15:18:36 2008
@@ -31,26 +31,36 @@
 class N_state_opt:
     """Class containing the target function of the optimisation of the 
N-state model."""
 
-    def __init__(self, N=None, init_params=None, full_tensors=None, 
red_data=None, red_errors=None, full_in_ref_frame=None):
+    def __init__(self, model=None, N=None, init_params=None, 
full_tensors=None, red_data=None, red_errors=None, full_in_ref_frame=None, 
rdcs=None, xh_vect=None):
         """Set up the class instance for optimisation.
 
         All constant data required for the N-state model are initialised 
here.
 
 
-        @param N:               The number of states.
+        @keyword model:         The N-state model type.  This can be one of 
'2-domain', 'population'
+                                or 'fixed'.
+        @type model:            str
+        @keyword N:             The number of states.
         @type N:                int
-        @param init_params:     The initial parameter values.  Optimisation 
must start at some
+        @keyword init_params:   The initial parameter values.  Optimisation 
must start at some
                                 point!
         @type init_params:      numpy float64 array
-        @param full_tensors:    A list of the full alignment tensors in 
matrix form.
+        @keyword full_tensors:  A list of the full alignment tensors in 
matrix form.
         @type full_tensors:     list of 3x3 numpy matricies
-        @param red_data:        An array of the {Sxx, Syy, Sxy, Sxz, Syz} 
values for all reduced
+        @keyword red_data:      An array of the {Sxx, Syy, Sxy, Sxz, Syz} 
values for all reduced
                                 tensors.  The format is [Sxx1, Syy1, Sxy1, 
Sxz1, Syz1, Sxx2, Syy2,
                                 Sxy2, Sxz2, Syz2, ..., Sxxn, Syyn, Sxyn, 
Sxzn, Syzn]
         @type red_data:         numpy float64 array
-        @param red_errors:      An array of the {Sxx, Syy, Sxy, Sxz, Syz} 
errors for all reduced
+        @keyword red_errors:    An array of the {Sxx, Syy, Sxy, Sxz, Syz} 
errors for all reduced
                                 tensors.  The array format is the same as 
for red_data.
         @type red_errors:       numpy float64 array
+        @keyword rdcs:          The RDC lists.  The first index must 
correspond to the spin systems
+                                and the second index correspond to the RDCs 
of different alignment
+                                media.
+        @type rdcs:             list of lists of float
+        @keyword xh_vect:       The unit XH vector lists.  The dimensions of 
this argument are the
+                                same as for 'rdcs'.
+        @type xh_vect:          list of lists of float
         """
 
         # Store the data inside the class instance namespace.




Related Messages


Powered by MHonArc, Updated Wed Jul 09 17:00:32 2008