Changeset 0444c02 in sasmodels


Ignore:
Timestamp:
Oct 8, 2016 2: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

Location:
sasmodels
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/direct_model.py

    r4cc161e r0444c02  
    3131from . import resolution2d 
    3232from .details import make_kernel_args, dispersion_mesh 
     33from sas.sasgui.perspectives.fitting.fitpage import FitPage 
    3334 
    3435try: 
     
    193194        # interpret data 
    194195        if hasattr(data, 'lam'): 
     196        #if not FitPage.no_transform.GetValue(): #if the no_transform radio button is not active DOES NOT WORK! not active before fitting 
    195197            self.data_type = 'sesans' 
    196198        elif hasattr(data, 'qx_data'): 
  • sasmodels/resolution.py

    r69ef533 r0444c02  
    4242        """ 
    4343        raise NotImplementedError("Subclass does not define the apply function") 
    44  
    4544 
    4645class Perfect1D(Resolution): 
  • 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.