Ignore:
Timestamp:
Sep 7, 2018 9:40:56 AM (6 years ago)
Author:
GitHub <noreply@…>
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:
0109f2a (diff), dcabba7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Torin Cooper-Bennun <40573959+tcbennun@…> (09/07/18 09:40:56)
git-committer:
GitHub <noreply@…> (09/07/18 09:40:56)
Message:

Merge branch 'ESS_GUI' into ESS_GUI_iss966

File:
1 edited

Legend:

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

    r70f4458 r4ea8020  
    474474 
    475475    theory_name = str(current_data.name.split()[0]) 
    476     residuals.name = "Residuals for " + str(theory_name) + "[" + \ 
    477                     str(reference_data.filename) + "]" 
     476    res_name = reference_data.filename if reference_data.filename else reference_data.name 
     477    residuals.name = "Residuals for " + str(theory_name) + "[" + res_name + "]" 
    478478    residuals.title = residuals.name 
    479479    residuals.ytransform = 'y' 
     
    501501    """ 
    502502    weight = None 
     503    if data is None: 
     504        return [] 
    503505    if is2d: 
     506        if not hasattr(data, 'err_data'): 
     507            return [] 
    504508        dy_data = data.err_data 
    505509        data = data.data 
    506510    else: 
     511        if not hasattr(data, 'dy'): 
     512            return [] 
    507513        dy_data = data.dy 
    508514        data = data.y 
Note: See TracChangeset for help on using the changeset viewer.