Changeset 1a8c11c in sasmodels for sasmodels/direct_model.py
- Timestamp:
- Jul 19, 2018 11:56:00 AM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 58a34f1
- Parents:
- 4341dd4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/direct_model.py
rb9c19aa2 r1a8c11c 250 250 qmax = getattr(data, 'qmax', np.inf) 251 251 accuracy = getattr(data, 'accuracy', 'Low') 252 index = ~data.mask& (q >= qmin) & (q <= qmax)252 index = (data.mask == 0) & (q >= qmin) & (q <= qmax) 253 253 if data.data is not None: 254 254 index &= ~np.isnan(data.data) … … 265 265 mask = getattr(data, 'mask', None) 266 266 if mask is not None: 267 index &= ~mask267 index &= (mask == 0) 268 268 if data.y is not None: 269 269 index &= ~np.isnan(data.y)
Note: See TracChangeset
for help on using the changeset viewer.