Changeset 87c722e in sasmodels for sasmodels/bumps_model.py
- Timestamp:
- Feb 13, 2015 4:37:09 PM (9 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- f5b9a6b
- Parents:
- be802cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/bumps_model.py
r31819c5 r87c722e 46 46 Load data using a sasview loader. 47 47 """ 48 from sa ns.dataloader.loader import Loader48 from sas.dataloader.loader import Loader 49 49 loader = Loader() 50 50 data = loader.load(filename) … … 61 61 """ 62 62 63 from sa ns.dataloader.data_info import Data1D63 from sas.dataloader.data_info import Data1D 64 64 65 65 Iq = 100*np.ones_like(q) … … 79 79 Resolution dq/q is 5%. 80 80 """ 81 from sa ns.dataloader.data_info import Data2D, Detector81 from sas.dataloader.data_info import Data2D, Detector 82 82 83 83 if qy is None: … … 123 123 Add a beam stop of the given *radius*. If *outer*, make an annulus. 124 124 """ 125 from sa ns.dataloader.manipulations import Ringcut125 from sas.dataloader.manipulations import Ringcut 126 126 if hasattr(data, 'qx_data'): 127 127 data.mask = Ringcut(0, radius)(data) … … 138 138 Select half of the data, either "right" or "left". 139 139 """ 140 from sa ns.dataloader.manipulations import Boxcut140 from sas.dataloader.manipulations import Boxcut 141 141 if half == 'right': 142 142 data.mask += Boxcut(x_min=-np.inf, x_max=0.0, y_min=-np.inf, y_max=np.inf)(data) … … 149 149 Chop the top off the data, above *max*. 150 150 """ 151 from sa ns.dataloader.manipulations import Boxcut151 from sas.dataloader.manipulations import Boxcut 152 152 data.mask += Boxcut(x_min=-np.inf, x_max=np.inf, y_min=-np.inf, y_max=max)(data) 153 153
Note: See TracChangeset
for help on using the changeset viewer.