- Timestamp:
- Nov 20, 2016 7:32:48 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:
- 4466a6a
- Parents:
- 55db501
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/data_util/qsmearing.py
r55db501 re4078ed 17 17 import numpy as np # type: ignore 18 18 from numpy import pi, exp # type: ignore 19 #from scipy.special import j as besselj20 19 21 from sasmodels.resolution import Slit1D, Pinhole1D, SESANS1D 20 from sasmodels.resolution import Slit1D, Pinhole1D 21 from sasmodels.sesans import SESANS1D 22 22 from sasmodels.resolution2d import Pinhole2D 23 23 from src.sas.sascalc.data_util.nxsunit import Converter … … 68 68 #Pre-compute the Hankel matrix (H) 69 69 qmax, qunits = data.sample.zacceptance 70 Hankelinst=sesans.SesansTransform()71 sesans.SesansTransform.set_transform( Hankelinst,70 hankel=sesans.SesansTransform() 71 sesans.SesansTransform.set_transform(hankel, 72 72 SE = Converter(data._xunit)(data.x, "A"), 73 73 zaccept = Converter(qunits)(qmax, "1/A"), 74 74 Rmax = 1000000) 75 H=sesans.SesansTransform._H76 H0=sesans.SesansTransform._H077 q=sesans.SesansTransform.q78 75 # Then return the actual transform, as if it were a smearing function 79 76 # applying evalDistribution to a model, with a q-space as param, returns the I(q) values that go with the q-values 80 77 81 return PySmear(SESANS1D(data, H0, H,q), model)78 return PySmear(SESANS1D(data, hankel._H0, hankel._H, hankel.q), model) 82 79 83 80 _found_resolution = False
Note: See TracChangeset
for help on using the changeset viewer.