Changes in / [cfd27dd:7b15990] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/data_util/qsmearing.py
r235f514 rba91f71 5 5 #This software was developed by the University of Tennessee as part of the 6 6 #Distributed Data Analysis of Neutron Scattering Experiments (DANSE) 7 #project funded by the US National Science Foundation. 7 #project funded by the US National Science Foundation. 8 8 #See the license text in license.txt 9 9 #copyright 2008, University of Tennessee … … 17 17 18 18 from sasmodels.resolution import Slit1D, Pinhole1D 19 from sasmodels.sesans import SesansTransform 19 from sasmodels.sesans import SesansTransform, OrientedSesansTransform 20 20 from sasmodels.resolution2d import Pinhole2D 21 21 from .nxsunit import Converter … … 74 74 75 75 Rmax = 10000000 76 hankel = SesansTransform(data.x, SElength,77 data.source.wavelength,78 zaccept, Rmax)79 76 # Then return the actual transform, as if it were a smearing function 80 return PySmear(hankel, model, offset=0) 77 # data must have the isoriented flag here! 78 if getattr(data, 'isoriented', False): 79 costransform = OrientedSesansTransform(data.x, SElength, zaccept, Rmax) 80 return PySmear(costransform, model, offset=0) 81 else: 82 hankel = SesansTransform(data.x, SElength, 83 data.source.wavelength, zaccept, Rmax) 84 return PySmear(hankel, model, offset=0) 81 85 82 86 _found_resolution = False … … 138 142 first_bin:last_bin set to the resolution smeared values. 139 143 """ 140 if last_bin is None: last_bin = len(iq_in)141 start, end = first_bin + self.offset, last_bin + self.offset142 144 q_calc = self.resolution.q_calc 143 145 iq_calc = np.empty_like(q_calc) … … 251 253 val = self.model.evalDistribution(q_calc) 252 254 return val 253
Note: See TracChangeset
for help on using the changeset viewer.