mailr9114 - /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 - 17:15:
Author: bugman
Date: Fri Jun 19 17:15:33 2009
New Revision: 9114

URL: http://svn.gna.org/viewcvs/relax?rev=9114&view=rev
Log:
Bug fixes for the __unpack_opt_results() 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=9114&r1=9113&r2=9114&view=diff
==============================================================================
--- branches/frame_order/specific_fns/frame_order.py (original)
+++ branches/frame_order/specific_fns/frame_order.py Fri Jun 19 17:15:33 2009
@@ -117,18 +117,21 @@
             cdp.theta = None
 
 
-    def __unpack_opt_results(self, results):
+    def __unpack_opt_results(self, results, sim_index=None):
         """Unpack and store the Frame Order optimisation results.
 
-        @param results: The results tuple returned by the minfx 
generic_minimise() function.
-        @type results:  tuple
-        """
+        @param results:     The results tuple returned by the minfx 
generic_minimise() function.
+        @type results:      tuple
+        @param sim_index:   The index of the simulation to optimise.  This 
should be None for normal
+                            optimisation.
+        @type sim_index:    None or int
+         """
 
         # Alias the current data pipe.
         cdp = pipes.get_pipe()
 
         # Disassemble the results.
-        param_vector, chi2[i], iter_count, f_count, g_count, h_count, 
warning = results
+        param_vector, func, iter_count, f_count, g_count, h_count, warning = 
results
 
         # Catch infinite chi-squared values.
         if isInf(func):
@@ -293,7 +296,7 @@
         results = generic_minimise(func=target.func, args=(), 
x0=param_vector, min_algor=min_algor, min_options=min_options, 
func_tol=func_tol, grad_tol=grad_tol, maxiter=max_iterations, full_output=1, 
print_flag=verbosity)
 
         # Unpack the results.
-        self.__unpack_opt_results(results)
+        self.__unpack_opt_results(results, sim_index)
 
 
     def select_model(self, model=None):




Related Messages


Powered by MHonArc, Updated Fri Jun 19 17:40:03 2009