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/FittingUtilities.py

    r1a15ada r305114c  
    781781 
    782782    return output_string 
     783 
     784def isParamPolydisperse(param_name, kernel_params, is2D=False): 
     785    """ 
     786    Simple lookup for polydispersity for the given param name 
     787    """ 
     788    parameters = kernel_params.form_volume_parameters 
     789    if is2D: 
     790        parameters += kernel_params.orientation_parameters 
     791    has_poly = False 
     792    for param in parameters: 
     793        if param.name==param_name and param.polydisperse: 
     794            has_poly = True 
     795            break 
     796    return has_poly 
     797 
Note: See TracChangeset for help on using the changeset viewer.