mailr9091 - /branches/frame_order/specific_fns/frame_order.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 19, 2009 - 10:58:
Author: bugman
Date: Fri Jun 19 10:58:47 2009
New Revision: 9091

URL: http://svn.gna.org/viewcvs/relax?rev=9091&view=rev
Log:
Added the __update_model() method.


Modified:
    branches/frame_order/specific_fns/frame_order.py

Modified: branches/frame_order/specific_fns/frame_order.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/frame_order/specific_fns/frame_order.py?rev=9091&r1=9090&r2=9091&view=diff
==============================================================================
--- branches/frame_order/specific_fns/frame_order.py (original)
+++ branches/frame_order/specific_fns/frame_order.py Fri Jun 19 10:58:47 2009
@@ -31,6 +31,26 @@
 
 class Frame_order(Common_functions):
     """Class containing the specific methods of the Frame Order theories."""
+
+    def __update_model(self):
+        """Update the model parameters as necessary."""
+
+        # Alias the current data pipe.
+        cdp = pipes.get_pipe()
+
+        # Initialise the list of model parameters.
+        if not hasattr(cdp, 'params'):
+            cdp.params = []
+
+        # Set up the parameter arrays.
+        if not len(cdp.params):
+            # Isotropic cone parameters.
+            if cdp.model == 'iso cone':
+                cdp.params.append('alpha')
+                cdp.params.append('beta')
+                cdp.params.append('gamma')
+                cdp.params.append('theta')
+
 
     def grid_search(self, lower, upper, inc, constraints=False, verbosity=0, 
sim_index=None):
         """Perform a grid search.




Related Messages


Powered by MHonArc, Updated Fri Jun 19 11:20:04 2009