Ignore:
Timestamp:
Sep 6, 2018 5:11:49 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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:
fd7ef36
git-author:
Piotr Rozyczko <rozyczko@…> (09/06/18 05:10:43)
git-committer:
Piotr Rozyczko <rozyczko@…> (09/06/18 05:11:49)
Message:

Fixed unit tests for fitting SASVIEW-1024
Corrected behaviour of the Structure factor combo box on model/category change

File:
1 edited

Legend:

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

    rfd7ef36 r605d944  
    968968        self.has_poly_error_column = False 
    969969 
    970         self.respondToModelStructure(model=model, structure_factor=None) 
     970        structure = None 
     971        if self.cbStructureFactor.isEnabled(): 
     972            structure = str(self.cbStructureFactor.currentText()) 
     973        self.respondToModelStructure(model=model, structure_factor=structure) 
    971974 
    972975    def onSelectBatchFilename(self, data_index): 
     
    19621965            # Allow the SF combobox visibility for the given sasmodel 
    19631966            self.enableStructureFactorControl(structure_factor) 
     1967            if self.cbStructureFactor.isEnabled(): 
     1968                structure_factor = self.cbStructureFactor.currentText() 
     1969                self.fromStructureFactorToQModel(structure_factor) 
    19641970 
    19651971        # Then, add multishells 
     
    20562062        Setting model parameters into QStandardItemModel based on selected _structure factor_ 
    20572063        """ 
     2064        if structure_factor is None or structure_factor=="None": 
     2065            return 
    20582066        structure_module = generate.load_kernel_module(structure_factor) 
    20592067        structure_parameters = modelinfo.make_parameter_table(getattr(structure_module, 'parameters', [])) 
Note: See TracChangeset for help on using the changeset viewer.