Changeset 2ccb775 in sasmodels for sasmodels/resolution.py


Ignore:
Timestamp:
Nov 9, 2016 3:50:01 PM (7 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:
46d9f48
Parents:
1a6cd57
Message:

Experimenting with Hankel transform optimizations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/resolution.py

    reb8a82e r2ccb775  
    5959 
    6060class SESANS1D(Resolution): 
    61  
     61    def __init__(self, data, H0, H, q_calc): 
     62        self.q = data.x 
     63        self.H0 = H0 
     64        self.H = H 
     65        self.data=data 
     66        self.q_calc = q_calc 
     67    def apply(self, theory): 
     68        return sesans.hankeltrafo(self.H0, self.H, theory) 
     69 
     70""" 
    6271    def __init__(self, data, q_calc): 
    6372        self.q = data.x 
     
    6776    def apply(self, theory): 
    6877        return sesans.transform(self.data, self.q_calc, theory, None, None) 
    69  
     78""" 
    7079class Pinhole1D(Resolution): 
    7180    r""" 
Note: See TracChangeset for help on using the changeset viewer.