Changeset 26b848d in sasmodels for sasmodels/resolution.py


Ignore:
Timestamp:
Nov 20, 2016 7:39:44 AM (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:
777d369
Parents:
589b740
Message:

SESANS optimizations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/resolution.py

    r589b740 r26b848d  
    1111 
    1212from sasmodels import sesans 
     13from sasmodels.sesans import SesansTransform as SesansTransform 
    1314 
    1415__all__ = ["Resolution", "Perfect1D", "Pinhole1D", "Slit1D", 
     
    5758        return theory 
    5859 
    59  
    60 class SESANS1D(Resolution): 
    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.SesansTransform.apply(theory) 
    69         #return sesans.hankeltrafo(self.H0, self.H, theory) 
    70  
    71 """ 
    72     def __init__(self, data, q_calc): 
    73         self.q = data.x 
    74         self.data = data 
    75         self.q_calc = q_calc 
    76  
    77     def apply(self, theory): 
    78         return sesans.transform(self.data, self.q_calc, theory, None, None) 
    79 """ 
    8060class Pinhole1D(Resolution): 
    8161    r""" 
Note: See TracChangeset for help on using the changeset viewer.