Changeset b297ba9 in sasmodels for sasmodels/models/line.py


Ignore:
Timestamp:
Mar 20, 2019 7:03:50 PM (5 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:
4e28511
Parents:
0d362b7
Message:

lint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/line.py

    r108e70e rb297ba9  
    5858 
    5959 
    60 def Iqxy(qx, qy, *args): 
     60def Iqxy(qx, qy, intercept, slope): 
    6161    """ 
    6262    :param qx:   Input q_x-value 
    6363    :param qy:   Input q_y-value 
    64     :param args: Remaining arguments 
     64    :param intercept:   Intrecept in linear model 
     65    :param slope:       Slope in linear model 
    6566    :return:     2D-Intensity 
    6667    """ 
    6768    # TODO: SasView documents 2D intensity as Iq(qx)*Iq(qy), but returns Iq(qy) 
    6869    # Note: SasView.run([r, theta]) does return Iq(qx)*Iq(qy) 
    69     return Iq(qx, *args)*Iq(qy, *args) 
     70    return Iq(qx, intercept, slope)*Iq(qy, intercept, slope) 
    7071 
    7172Iqxy.vectorized = True  # Iqxy accepts an array of qx qy values 
     
    8081 
    8182def random(): 
     83    """Return a random parameter set for the model.""" 
    8284    scale = 10**np.random.uniform(0, 3) 
    8385    slope = np.random.uniform(-1, 1)*1e2 
Note: See TracChangeset for help on using the changeset viewer.