Ignore:
Timestamp:
May 22, 2017 7:25:30 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:
c416a17
Parents:
fd1ae6d1
Message:

Minor fixes in fitpage

File:
1 edited

Legend:

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

    rfd1ae6d1 r6964d44  
    819819        weight = FittingUtilities.getWeight(data=data, is2d=self.is2D, flag=self.weighting) 
    820820        update_module = data.err_data if self.is2D else data.dy 
     821        # Overwrite relevant values in data 
    821822        update_module = weight 
    822823 
     
    873874        # (Re)-create headers 
    874875        FittingUtilities.addHeadersToModel(self._model_model) 
     876        self.lstParams.header().setFont(self.boldFont) 
    875877 
    876878        # Update Q Ranges 
     
    888890 
    889891        # Explicitly add scale and background with default values 
     892        temp_undo_state = self.undo_supported 
     893        self.undo_supported = False 
    890894        self.addScaleToModel(self._model_model) 
    891895        self.addBackgroundToModel(self._model_model) 
     896        self.undo_supported = temp_undo_state 
    892897 
    893898        # Update the QModel 
     
    920925            self.checkboxSelected(item) 
    921926            self.cmdFit.setEnabled(self.parameters_to_fit != [] and self.logic.data_is_loaded) 
     927            # Update state stack 
     928            self.updateUndo() 
    922929            return 
    923930 
     
    10701077        calc_thread = threads.deferToThread(method.compute) 
    10711078        calc_thread.addCallback(self.methodCompleteForData()) 
     1079        calc_thread.addErrback(self.calculateDataFailed()) 
     1080 
     1081    def calculateDataFailed(self): 
     1082        """ 
     1083        """ 
     1084        print "Calculate Data failed." 
    10721085 
    10731086    def complete1D(self, return_data): 
     
    10931106        # Create a new index for holding data 
    10941107        fitted_data.symbol = "Line" 
     1108 
     1109        # Modify fitted_data with weighting 
     1110        self.addWeightingToData(fitted_data) 
     1111 
    10951112        self.createNewIndex(fitted_data) 
    10961113        # Calculate difference between return_data and logic.data 
     
    13081325        fp.chi2 = self.chi2 
    13091326        fp.parameters_to_fit = self.parameters_to_fit 
     1327        fp.kernel_module = self.kernel_module 
    13101328 
    13111329        # Options tab 
Note: See TracChangeset for help on using the changeset viewer.