Ignore:
Timestamp:
Sep 20, 2018 8:08:41 AM (6 years ago)
Author:
ibressler
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
a8b3e2c
Parents:
16287f3
Message:

plotPolydispersities(): iterate over param. names only

File:
1 edited

Legend:

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

    r16287f3 r5d3af9f  
    576576        return plots 
    577577    # test for model being a sasmodels.sasview_model.SasviewModel? 
    578     for name, pars in model.dispersion.items(): 
    579         if 0 == pars['width']: # no actual polydispersity 
    580             continue 
    581         _, xarr, yarr = model.get_weights(name) 
    582         if xarr is None or yarr is None: # param name not found 
     578    for name in model.dispersion.keys(): 
     579        xarr, yarr = model.get_weights(name) 
     580        if len(xarr) <= 1: # param name not found or no polydisp. 
    583581            continue 
    584582        # create Data1D as in residualsData1D() and fill x/y members 
Note: See TracChangeset for help on using the changeset viewer.