Changes in sasmodels/resolution.py [2b3a1bd:eb8a82e] in sasmodels


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/resolution.py

    r2b3a1bd reb8a82e  
    99from numpy import sqrt, log, log10, exp, pi  # type: ignore 
    1010import numpy as np  # type: ignore 
     11 
     12from sasmodels import sesans 
    1113 
    1214__all__ = ["Resolution", "Perfect1D", "Pinhole1D", "Slit1D", 
     
    4345        raise NotImplementedError("Subclass does not define the apply function") 
    4446 
    45  
    4647class Perfect1D(Resolution): 
    4748    """ 
     
    5657        return theory 
    5758 
     59 
     60class SESANS1D(Resolution): 
     61 
     62    def __init__(self, data, q_calc): 
     63        self.q = data.x 
     64        self.data = data 
     65        self.q_calc = q_calc 
     66 
     67    def apply(self, theory): 
     68        return sesans.transform(self.data, self.q_calc, theory, None, None) 
    5869 
    5970class Pinhole1D(Resolution): 
Note: See TracChangeset for help on using the changeset viewer.