Ignore:
Timestamp:
Sep 12, 2011 4:37:40 PM (13 years ago)
Author:
Gervaise Alina <gervyh@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
8523a1f2
Parents:
7afcae8
Message:

working on batch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/fit_thread.py

    r8aa5788 r33dd2e5  
    2020                  page_id, 
    2121                   handler, 
    22                    batch_result,  
     22                    batch_outputs, 
     23                    batch_inputs=None,              
    2324                  pars=None, 
    2425                 completefn = None, 
     
    3435        self.fitter = fn 
    3536        self.pars = pars 
    36         self.batch_result = batch_result 
     37        self.batch_inputs = batch_inputs 
     38        self.batch_outputs = batch_outputs 
    3739        self.page_id = page_id 
    3840        self.starttime = 0 
     
    5759        msg = "" 
    5860        try: 
     61            import copy 
    5962            list_handler = [] 
    6063            list_curr_thread = []  
     
    7275            from multiprocessing import Pool 
    7376            inputs = zip(list_map_get_attr,self.fitter, list_fit_function, 
    74                          list_handler, list_q, list_curr_thread,list_ftol) 
     77                         list_handler, list_q, list_curr_thread, list_ftol) 
    7578            result =  Pool(1).map(func=map_apply,  
    7679                               iterable=inputs) 
    77             #self.handler.starting_fit() 
    78             self.complete(result= result, 
    79                           batch_result=self.batch_result, 
     80            self.complete(result=result, 
     81                          batch_inputs=self.batch_inputs, 
     82                           batch_outputs=self.batch_outputs, 
    8083                          page_id=self.page_id, 
    8184                          pars = self.pars) 
Note: See TracChangeset for help on using the changeset viewer.