Ignore:
Timestamp:
Sep 14, 2018 10:10:09 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:
aa88b76
Parents:
86d3207
Message:

Added a warning label to simple and complex constraint widgets,
shown whenever polydisperse parameters are constrained SASVIEW-1042

File:
1 edited

Legend:

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

    r86d3207 r305114c  
    649649        # Create and display the widget for param1 and param2 
    650650        mc_widget = MultiConstraint(self, params=params_list) 
     651        # Check if any of the parameters are polydisperse 
     652        if not np.any([FittingUtilities.isParamPolydisperse(p, self.model_parameters, is2D=self.is2D) for p in params_list]): 
     653            # no parameters are pd - reset the text to not show the warning 
     654            mc_widget.lblWarning.setText("") 
    651655        if mc_widget.exec_() != QtWidgets.QDialog.Accepted: 
    652656            return 
Note: See TracChangeset for help on using the changeset viewer.