Changeset 87c722e in sasmodels for sasmodels/bumps_model.py


Ignore:
Timestamp:
Feb 13, 2015 4:37:09 PM (9 years ago)
Author:
pkienzle
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
Message:

use sas instead of sans

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/bumps_model.py

    r31819c5 r87c722e  
    4646    Load data using a sasview loader. 
    4747    """ 
    48     from sans.dataloader.loader import Loader 
     48    from sas.dataloader.loader import Loader 
    4949    loader = Loader() 
    5050    data = loader.load(filename) 
     
    6161    """ 
    6262 
    63     from sans.dataloader.data_info import Data1D 
     63    from sas.dataloader.data_info import Data1D 
    6464 
    6565    Iq = 100*np.ones_like(q) 
     
    7979    Resolution dq/q is 5%. 
    8080    """ 
    81     from sans.dataloader.data_info import Data2D, Detector 
     81    from sas.dataloader.data_info import Data2D, Detector 
    8282 
    8383    if qy is None: 
     
    123123    Add a beam stop of the given *radius*.  If *outer*, make an annulus. 
    124124    """ 
    125     from sans.dataloader.manipulations import Ringcut 
     125    from sas.dataloader.manipulations import Ringcut 
    126126    if hasattr(data, 'qx_data'): 
    127127        data.mask = Ringcut(0, radius)(data) 
     
    138138    Select half of the data, either "right" or "left". 
    139139    """ 
    140     from sans.dataloader.manipulations import Boxcut 
     140    from sas.dataloader.manipulations import Boxcut 
    141141    if half == 'right': 
    142142        data.mask += Boxcut(x_min=-np.inf, x_max=0.0, y_min=-np.inf, y_max=np.inf)(data) 
     
    149149    Chop the top off the data, above *max*. 
    150150    """ 
    151     from sans.dataloader.manipulations import Boxcut 
     151    from sas.dataloader.manipulations import Boxcut 
    152152    data.mask += Boxcut(x_min=-np.inf, x_max=np.inf, y_min=-np.inf, y_max=max)(data) 
    153153 
Note: See TracChangeset for help on using the changeset viewer.