Changeset 1aa8084 in sasview
- Timestamp:
- Jan 9, 2012 12:49:49 PM (13 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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- cfe1feb
- Parents:
- 0c74c85
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/smearing_2d.py
r87615a48 r1aa8084 26 26 27 27 def __init__(self, data=None, model=None, index=None, 28 limit=LIMIT, accuracy='Low', coords='polar', engine=' python'):28 limit=LIMIT, accuracy='Low', coords='polar', engine='c'): 29 29 """ 30 30 Assumption: equally spaced bins in dq_r, dq_phi space. … … 147 147 if self._engine == 'c' and self.coords == 'polar': 148 148 try: 149 import sans _extension.smearer2d_helper as smearer2dc149 import sans.models.sans_extension.smearer2d_helper as smearer2dc 150 150 smearc = smearer2dc.new_Smearer_helper(self.qx_data, self.qy_data, 151 151 self.dqx_data, self.dqy_data, … … 154 154 qx_res = numpy.zeros(nr * nphi * int(len_data)) 155 155 qy_res = numpy.zeros(nr * nphi * int(len_data)) 156 smearer2dc.smearer2d_helper(smearc, weight_res, qx_res, qy_res)156 smearer2dc.smearer2d_helper(smearc, weight_res, qx_res, qy_res) 157 157 except: 158 158 raise … … 231 231 dz = numpy.sqrt(z) 232 232 233 from DataLoader import Data2D233 from sans.dataloader import Data2D 234 234 #for i in range(10): print i, 0.001 + i*0.008/9.0 235 235 #for i in range(100): print i, int(math.floor( (i/ (100/9.0)) ))
Note: See TracChangeset
for help on using the changeset viewer.