Changeset 76567bb in sasview for src/sas/qtgui/Perspectives


Ignore:
Timestamp:
Apr 13, 2018 4:00:37 PM (7 years ago)
Author:
krzywon
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:
b9e89d5
Parents:
effdd98
Message:

Improvements to batch P(r).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Inversion/InversionPerspective.py

    reffdd98 r76567bb  
    3434 
    3535 
     36# TODO: Use communicator to catch data deletions 
    3637# TODO: Update help with batch capabilities 
    37 # TODO: Method to export results in some meaningful way 
    3838class InversionWindow(QtWidgets.QDialog, Ui_PrInversion): 
    3939    """ 
     
    381381 
    382382    def showBatchOutput(self, output_data): 
     383        """ 
     384        Display the batch output in tabular form 
     385        :param output_data: Dictionary mapping filename -> P(r) instance 
     386        """ 
    383387        if self.grid_window is None: 
    384388            self.grid_window = BatchInversionOutputPanel( 
    385389                parent=self, output_data=output_data) 
     390        else: 
     391            self.grid_window.setupTable(output_data) 
    386392        self.grid_window.show() 
    387393 
     
    499505            self.dmaxWindow.close() 
    500506            self.dmaxWindow = None 
    501         current_data = self._data 
     507        self._data_list.pop(self._data) 
     508        self._data = None 
    502509        self.dataList.removeItem(self.dataList.currentIndex()) 
    503         self._data_list.pop(current_data) 
    504510        # Last file removed 
    505511        if len(self._data_list) == 0: 
     
    527533        for data_ref in self._data_list.keys(): 
    528534            self.setCurrentData(data_ref) 
     535            self.performEstimate() 
     536            self.performEstimateNT() 
     537            self.acceptAlpha() 
     538            self.acceptNoTerms() 
    529539            self.startThread() 
    530540            output[self.logic.data.filename] = self._calculator 
     
    581591        self.estimation_thread_nt.queue() 
    582592        self.estimation_thread_nt.ready(2.5) 
     593        if self.waitForEach: 
     594            if self.estimation_thread_nt.isrunning(): 
     595                self.estimation_thread_nt.update() 
    583596 
    584597    def performEstimate(self): 
     
    599612        self.estimation_thread.queue() 
    600613        self.estimation_thread.ready(2.5) 
     614        if self.waitForEach: 
     615            if self.estimation_thread.isrunning(): 
     616                self.estimation_thread.update() 
    601617 
    602618    ###################################################################### 
     
    618634        if message: 
    619635            logging.info(message) 
    620         self.performEstimateNT() 
     636        if not self.waitForEach: 
     637            self.performEstimateNT() 
    621638 
    622639    def _estimateNTCompleted(self, nterms, alpha, message, elapsed): 
Note: See TracChangeset for help on using the changeset viewer.