Changeset 7b15990 in sasview for src/sas/sascalc/data_util/qsmearing.py
- Timestamp:
- Sep 18, 2017 12:45:52 PM (7 years ago)
- Branches:
- costrafo411
- Parents:
- 9f59333 (diff), cfd27dd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/data_util/qsmearing.py
r9f59333 r7b15990 65 65 raise ValueError('one or more of your dx values are negative, please check the data file!') 66 66 67 if _found_sesans == True: 68 #Pre-compute the Hankel matrix (H) 69 qmax, qunits = data.sample.zacceptance 67 if _found_sesans: 68 # Pre-compute the Hankel matrix (H) 70 69 SElength = Converter(data._xunit)(data.x, "A") 71 zaccept = Converter(qunits)(qmax, "1/A"), 70 71 theta_max = Converter("radians")(data.sample.zacceptance)[0] 72 q_max = 2 * np.pi / np.max(data.source.wavelength) * np.sin(theta_max) 73 zaccept = Converter("1/A")(q_max, "1/" + data.source.wavelength_unit), 74 72 75 Rmax = 10000000 76 # Then return the actual transform, as if it were a smearing function 73 77 # data must have the isoriented flag here! 74 # Then return the actual transform, as if it were a smearing function75 78 if getattr(data, 'isoriented', False): 76 79 costransform = OrientedSesansTransform(data.x, SElength, zaccept, Rmax) 77 80 return PySmear(costransform, model, offset=0) 78 81 else: 79 hankel = SesansTransform(data.x, SElength, zaccept, Rmax) 82 hankel = SesansTransform(data.x, SElength, 83 data.source.wavelength, zaccept, Rmax) 80 84 return PySmear(hankel, model, offset=0) 81 85
Note: See TracChangeset
for help on using the changeset viewer.