Changeset 581661f in sasmodels


Ignore:
Timestamp:
Jul 27, 2018 4:51:20 PM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
12eec1e, 9e7837a, 1711569
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.