Changeset f5e226c9 in sasview for src/sas/sascalc/data_util/qsmearing.py
- Timestamp:
- Nov 10, 2016 10:40:33 AM (8 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- a01af35
- Parents:
- 4581ac9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/data_util/qsmearing.py
r4581ac9 rf5e226c9 13 13 import logging 14 14 import sys 15 import time 15 16 from sasmodels import sesans 16 17 … … 65 66 66 67 if _found_sesans == True: 67 #Pre-computing the Hankel matrix 68 #Pre-computing the Hankel matrix (H) 69 68 70 Rmax = 1000000 69 71 q_calc = sesans.make_q(data.sample.zacceptance, Rmax) … … 71 73 dq = q_calc[1] - q_calc[0] 72 74 H0 = dq / (2 * pi) * q_calc 73 H = dq / (2 * pi) * besselj(0, np.outer(q_calc, SElength)) 74 75 repSE, repq = np.meshgrid(SElength,q_calc) 76 hankelt=time.time() 77 H = dq / (2 * pi) * besselj(0, np.outer(q_calc, SElength))*repq 78 hankelt=time.time()-hankelt 79 print("Hankel transform took "+str(hankelt)+" s") 75 80 return PySmear(SESANS1D(data, H0, H, q_calc), model) 76 81
Note: See TracChangeset
for help on using the changeset viewer.