Changes in sasmodels/resolution.py [2b3a1bd:eb8a82e] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/resolution.py
r2b3a1bd reb8a82e 9 9 from numpy import sqrt, log, log10, exp, pi # type: ignore 10 10 import numpy as np # type: ignore 11 12 from sasmodels import sesans 11 13 12 14 __all__ = ["Resolution", "Perfect1D", "Pinhole1D", "Slit1D", … … 43 45 raise NotImplementedError("Subclass does not define the apply function") 44 46 45 46 47 class Perfect1D(Resolution): 47 48 """ … … 56 57 return theory 57 58 59 60 class 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) 58 69 59 70 class Pinhole1D(Resolution):
Note: See TracChangeset
for help on using the changeset viewer.