Changeset 64017a8 in sasview
- Timestamp:
- Mar 30, 2010 5: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
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage.py
rd493f66 r64017a8 1107 1107 # more disables for 2D 1108 1108 if self.data.__class__.__name__ =="Data2D": 1109 if self.model != None: 1110 self.smear_description_2d.Show(True) 1109 1111 self.smear_description_none.Hide() 1110 self.smear_description_2d.Show(True)1111 1112 self.pinhole_smearer.Disable() 1112 1113 self.slit_smearer.Disable() -
sansview/perspectives/fitting/fitting.py
rc6036f5 r64017a8 1057 1057 1058 1058 # max and min taking account of the bin sizes 1059 theory.xmin= xmin - xstep/21060 theory.xmax= xmax + xstep/21061 theory.ymin= ymin - ystep/21062 theory.ymax= ymax + ystep/21059 theory.xmin= xmin 1060 theory.xmax= xmax 1061 theory.ymin= ymin 1062 theory.ymax= ymax 1063 1063 theory.group_id ="Model" 1064 1064 theory.id ="Model" -
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.