Ignore:
Timestamp:
Aug 1, 2017 3:12:36 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
985ad94
Parents:
0d13814
Message:

Allow old style threads for fitting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/FitThread.py

    rdc5ef15 r7adc2a8  
    7474                         list_reset_flag) 
    7575            result = map(map_apply, inputs) 
    76  
    77             self.complete(result=result, 
    78                           batch_inputs=self.batch_inputs, 
    79                           batch_outputs=self.batch_outputs, 
    80                           page_id=self.page_id, 
    81                           pars=self.pars, 
    82                           elapsed=time.time() - self.starttime) 
    83  
    84             return result[0], time.time()-self.starttime 
     76            results = (result[0], time.time()-self.starttime) 
     77            if self.handler: 
     78                self.completefn(results) 
     79            else: 
     80                return (results) 
    8581 
    8682        except KeyboardInterrupt, msg: 
     
    9692                self.handler.stop(msg=msg) 
    9793        except Exception as ex: 
     94            # print "ERROR IN FIT THREAD: ", traceback.format_exc() 
    9895            if self.handler is not None: 
    9996                self.handler.error(msg=traceback.format_exc()) 
Note: See TracChangeset for help on using the changeset viewer.