Changeset 581661f in sasmodels


Ignore:
Timestamp:
Jul 27, 2018 6:51:20 PM (3 weeks ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, beta_approx, beta_approx_lazy_results, beta_approx_new_R_eff, doc_update, ticket-1104-resolution, ticket-1142-plugin-reload, ticket-1148-Sq-scale-background
Children:
12eec1e, 9e7837a, 1711569, cff6ede
Parents:
8b34a79
Message:

fix sascomp plotting (masks were still not handled correctly)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/data.py

    r1a8c11c r581661f  
    504504            # and the data mask will be added to it. 
    505505            #mtheory = masked_array(theory, data.mask.copy()) 
    506             theory_x = data.x[~data.mask] 
     506            theory_x = data.x[data.mask == 0] 
    507507            mtheory = masked_array(theory) 
    508508            mtheory[~np.isfinite(mtheory)] = masked 
     
    545545 
    546546    if use_resid: 
    547         theory_x = data.x[~data.mask] 
     547        theory_x = data.x[data.mask == 0] 
    548548        mresid = masked_array(resid) 
    549549        mresid[~np.isfinite(mresid)] = masked 
Note: See TracChangeset for help on using the changeset viewer.