Changeset b9c19aa2 in sasmodels


Ignore:
Timestamp:
Jul 17, 2018 11:26:30 AM (5 weeks ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, ESS_GUI, 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, ticket-608-user-defined-weights
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.