Ignore:
Timestamp:
Aug 3, 2011 8:55:13 AM (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:
8677607
Parents:
4225aed
Message:

working on batch mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fit_thread.py

    rcc31608 r67ae937  
    6969                list_map_get_attr.append(map_getattr) 
    7070            from multiprocessing import Pool 
    71             inputs = zip(list_map_get_attr,self.fitter, list_fit_function, list_handler, list_q, list_curr_thread,list_ftol) 
    72             print inputs 
     71            inputs = zip(list_map_get_attr,self.fitter, list_fit_function, 
     72                         list_handler, list_q, list_curr_thread,list_ftol) 
    7373            result =  Pool(1).map(func=map_apply,  
    7474                               iterable=inputs) 
    7575            #self.handler.starting_fit() 
    76             #Result from the fit 
    77             """ 
    78                 result = self.fitter.fit(handler=self.handler,  
    79                                          curr_thread=self, 
    80                                          ftol=self.ftol) 
    81             """ 
    82             print "fithread result", result 
    8376            self.complete(result= result, 
    8477                          page_id=self.page_id, 
     
    8982            # Real code should not print, but this is an example... 
    9083            #print "keyboard exception" 
    91             #Stop on exception during fitting. Todo: need to put some mssg and reset progress bar. 
     84            #Stop on exception during fitting. Todo: need to put  
     85            #some mssg and reset progress bar. 
    9286            raise 
    9387            #if self.handler is not None: 
Note: See TracChangeset for help on using the changeset viewer.