Changeset 64017a8 in sasview for theoryview/perspectives/theory
- Timestamp:
- Mar 30, 2010 7:36:49 PM (15 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:
- 6e93a02
- Parents:
- 9bd6c13c
- Location:
- theoryview/perspectives/theory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
theoryview/perspectives/theory/model_thread.py
r00d3528 r64017a8 47 47 48 48 if self.data != None: 49 self.I_data = self.data.data 49 50 self.qx_data = self.data.qx_data 50 51 self.qy_data = self.data.qy_data … … 67 68 self.qy_data = new_ybin 68 69 self.qx_data = new_xbin 69 70 # fake data 71 self.I_data = numpy.ones(len(self.qx_data)) 72 70 73 self.mask = numpy.ones(len(self.qx_data),dtype=bool) 71 74 … … 78 81 index_model = ((self.qmin <= radius)&(radius<= self.qmax)) 79 82 self.mask = (index_model)&(self.mask) 80 83 self.mask = (self.mask)&(numpy.isfinite(self.I_data)) 81 84 if self.data ==None: 82 85 # Only qmin value will be consider for the detector … … 86 89 87 90 output = numpy.zeros(len(self.mask)) 91 92 # output default is None 93 # This method is to distinguish between masked point and data point = 0. 94 output = output/output 95 # set value for self.mask==True, else still None to Plottools 88 96 output[self.mask] = value 89 97 -
theoryview/perspectives/theory/theory.py
r00d3528 r64017a8 367 367 368 368 # max and min taking account of the bin sizes 369 theory.xmin= xmin - xstep/2370 theory.xmax= xmax + xstep/2371 theory.ymin= ymin - ystep/2372 theory.ymax= ymax + ystep/2369 theory.xmin= xmin 370 theory.xmax= xmax 371 theory.ymin= ymin 372 theory.ymax= ymax 373 373 theory.group_id ="Model" 374 374 theory.id ="Model"
Note: See TracChangeset
for help on using the changeset viewer.