Changeset 10fee37 in sasview


Ignore:
Timestamp:
Aug 13, 2018 6:29:08 AM (6 years ago)
Author:
Torin Cooper-Bennun <torin.cooper-bennun@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
c0de493
Parents:
8dd7b79
Message:

misc fixes to fitpage save

Location:
src/sas/qtgui/Perspectives/Fitting
Files:
2 edited

Legend:

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

    r02e7d3a r10fee37  
    115115        Add a new tab for passed data 
    116116        """ 
    117         tab     = FittingWidget(parent=self.parent, data=data, tab_id=self.maxIndex+1) 
     117        tab     = FittingWidget(parent=self.parent, data=data, tab_id=self.maxIndex) 
    118118        tab.is_batch_fitting = is_batch 
    119119 
  • src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    ra2cc8b97 r10fee37  
    27672767        state_reader = Reader(self.loadPageStateCallback) 
    27682768        filepath = self.saveAsAnalysisFile() 
    2769         if filepath is None: 
     2769        if filepath is None or filepath == "": 
    27702770            return 
    27712771        state_reader.write(filename=filepath, fitstate=state) 
     
    28192819        state.formfactorcombobox = self.cbModel.currentText() 
    28202820        if self.cbStructureFactor.isEnabled(): 
    2821             state.structureCombobox = self.cbStructureFactor.currentText() 
     2821            state.structurecombobox = self.cbStructureFactor.currentText() 
    28222822        state.tcChi = self.chi2 
    28232823 
     
    28512851        p = self.model_parameters 
    28522852        # save checkbutton state and txtcrtl values 
    2853         state.parameters = FittingUtilities.getStandardParam() 
    2854         state.orientation_params_disp = FittingUtilities.getOrientationParam() 
     2853        state.parameters = FittingUtilities.getStandardParam(self._model_model) 
     2854        state.orientation_params_disp = FittingUtilities.getOrientationParam(self.kernel_module) 
    28552855 
    28562856        #self._copy_parameters_state(self.orientation_params_disp, self.state.orientation_params_disp) 
Note: See TracChangeset for help on using the changeset viewer.