Changeset 0444c02 in sasmodels for sasmodels/sesans.py


Ignore:
Timestamp:
Oct 8, 2016 12:36:11 PM (8 years ago)
Author:
jhbakker
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
0ae0f9a
Parents:
b3f2a24
Message:

Changes for SESANS integration, next is merge with ajj_sesans

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/sesans.py

    r7ae2b7f r0444c02  
    1515from numpy import pi, exp  # type: ignore 
    1616from scipy.special import jv as besselj 
     17from sas.sasgui.perspectives.fitting.fitpage import FitPage 
    1718#import direct_model.DataMixin as model 
    1819         
     
    6162    """ 
    6263    nqmono = len(qmono) 
    63     if nqmono == 0: 
     64    #if nqmono == 0 # if radiobutton hankel is active 
     65    if FitPage.hankel.GetValue(): 
    6466        result = call_hankel(data, q_calc, Iq_calc) 
    6567    elif nqmono == 1: 
    6668        q = qmono[0] 
    6769        result = call_HankelAccept(data, q_calc, Iq_calc, q, Iq_mono) 
    68     else: 
     70    else: #if radiobutton Cosine is active 
    6971        Qx, Qy = [qmono[0], qmono[1]] 
    7072        Qx = np.reshape(Qx, nqx, nqy) 
Note: See TracChangeset for help on using the changeset viewer.