mailr10153 - /branches/multi_processor_merge/specific_fns/model_free/multi_processor_commands.py


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

Header


Content

Posted by edward on January 07, 2010 - 18:45:
Author: bugman
Date: Thu Jan  7 18:45:32 2010
New Revision: 10153

URL: http://svn.gna.org/viewcvs/relax?rev=10153&view=rev
Log:
Absorbed process_results() into run() in the MF_minimise_command class


Modified:
    
branches/multi_processor_merge/specific_fns/model_free/multi_processor_commands.py

Modified: 
branches/multi_processor_merge/specific_fns/model_free/multi_processor_commands.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/multi_processor_merge/specific_fns/model_free/multi_processor_commands.py?rev=10153&r1=10152&r2=10153&view=diff
==============================================================================
--- 
branches/multi_processor_merge/specific_fns/model_free/multi_processor_commands.py
 (original)
+++ 
branches/multi_processor_merge/specific_fns/model_free/multi_processor_commands.py
 Thu Jan  7 18:45:32 2010
@@ -167,23 +167,6 @@
         self.info_map = {'mf':None, 'model_type':None, 'spin_id':None, 
'sim_index':None, 'grid_size':1}
 
 
-    # rename confusing with processor process_results
-    def process_results(self, results, processor, completed):
-
-        # Disassemble the results list.
-        param_vector, func, iter, fc, gc, hc, warning = results
-
-        # Get the STDOUT and STDERR messages.
-        #FIXME: we need to interleave stdout and stderr
-        (stdout, stderr)= processor.get_stdio_capture()
-        result_string = stdout.getvalue() + stderr.getvalue()
-        stdout.truncate(0)
-        stderr.truncate(0)
-
-        processor.return_object(MF_result_command(processor, self.memo_id, 
param_vector, func, iter, fc, gc, hc, warning, completed=False))
-        processor.return_object(Result_string(processor, result_string, 
completed=completed))
-
-
     def run(self, processor, completed):
         """Execute the model-free optimisation."""
 
@@ -202,8 +185,18 @@
             # Minimisation.
             results = generic_minimise(func=self.mf.func, 
dfunc=self.mf.dfunc, d2func=self.mf.d2func, **self.minimise_map)
 
-            # Processing.
-            self.process_results(results, processor, completed)
+            # Disassemble the results list.
+            param_vector, func, iter, fc, gc, hc, warning = results
+
+            # Get the STDOUT and STDERR messages.
+            #FIXME: we need to interleave stdout and stderr
+            (stdout, stderr)= processor.get_stdio_capture()
+            result_string = stdout.getvalue() + stderr.getvalue()
+            stdout.truncate(0)
+            stderr.truncate(0)
+
+            processor.return_object(MF_result_command(processor, 
self.memo_id, param_vector, func, iter, fc, gc, hc, warning, completed=False))
+            processor.return_object(Result_string(processor, result_string, 
completed=completed))
 
         # An error occurred.
         except Exception, e :




Related Messages


Powered by MHonArc, Updated Thu Jan 07 19:00:02 2010