Changeset cd89c6f in sasview for sanscalculator/src/sans/calculator
- Timestamp:
- Jan 14, 2013 11:19:38 AM (12 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:
- fad6056
- Parents:
- 5c2932a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sanscalculator/src/sans/calculator/sans_gen.py
r5c2932a rcd89c6f 64 64 self.params['Up_frac_out'] = 1.0 65 65 self.params['Up_theta'] = 0.0 66 self.description ='GenSAS'66 self.description = 'GenSAS' 67 67 ## Parameter details [units, min, max] 68 68 self.details = {} … … 74 74 self.details['Up_theta'] = ['[deg]', None, None] 75 75 # fixed parameters 76 self.fixed =[]76 self.fixed = [] 77 77 78 78 def set_pixel_volumes(self, volume): … … 146 146 if x.__class__.__name__ == 'list': 147 147 i_out = numpy.zeros_like(x[0]) 148 y_in = numpy.zero _like(x[0])148 y_in = numpy.zeros_like(x[0]) 149 149 # 1D I is found at y =0 in the 2D pattern 150 150 return self._gen(x[0], y_in, i_out ) … … 163 163 i_out = numpy.zeros_like(x[0]) 164 164 import time 165 s =time.time()165 s = time.time() 166 166 out = self._gen(x[0], x[1], i_out) 167 print "i_out_time", time.time()-s167 print "i_out_time", time.time() - s 168 168 return out 169 169 else: … … 346 346 :return: x, y, z, sld_n, sld_mx, sld_my, sld_mz 347 347 """ 348 data_conv_m = None348 #data_conv_m = None 349 349 desc = "" 350 350 mx = numpy.zeros(0) … … 454 454 output.zmax = float(zmax) * METER2ANG 455 455 output.valuemultiplier = valuemultiplier 456 output.valuerangeminmag = mag2sld(float(valuerangeminmag), \456 output.valuerangeminmag = mag2sld(float(valuerangeminmag), \ 457 457 valueunit) 458 output.valuerangemaxmag = mag2sld(float(valuerangemaxmag), \458 output.valuerangemaxmag = mag2sld(float(valuerangemaxmag), \ 459 459 valueunit) 460 460 output.set_m(mx, my, mz) … … 1086 1086 x = numpy.arange(1000)/10000. + 1e-5 1087 1087 y = numpy.arange(1000)/10000. + 1e-5 1088 z = numpy.arange(1000)/10000. + 1e-51088 #z = numpy.arange(1000)/10000. + 1e-5 1089 1089 i = numpy.zeros(1000) 1090 1090 out = model.runXY([x,y,i])
Note: See TracChangeset
for help on using the changeset viewer.