Changeset b9c19aa2 in sasmodels


Ignore:
Timestamp:
Jul 17, 2018 11:26:30 AM (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:
1a3559f
Parents:
9a99993
Message:

acknowledge data mask for 1D data when using bumps directly on sasmodels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/direct_model.py

    rd18d6dd rb9c19aa2  
    263263        elif self.data_type == 'Iq': 
    264264            index = (data.x >= data.qmin) & (data.x <= data.qmax) 
     265            mask = getattr(data, 'mask', None) 
     266            if mask is not None: 
     267                index &= ~mask 
    265268            if data.y is not None: 
    266269                index &= ~np.isnan(data.y) 
Note: See TracChangeset for help on using the changeset viewer.