Changeset 027e8f2 in sasview
- Timestamp:
- Dec 8, 2009 4:24:55 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:
- 71e2de7
- Parents:
- 3bb37ef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
park_integration/AbstractFitEngine.py
r255306e r027e8f2 266 266 267 267 268 def set_data(self, sans_data2d ):268 def set_data(self, sans_data2d, qmin=None, qmax=None ): 269 269 """ 270 270 Determine the correct x_bin and y_bin to fit … … 279 279 280 280 ## fitting range 281 self.qmin = 1e-16 282 self.qmax = math.sqrt(x_max*x_max +y_max*y_max) 281 if qmin == None: 282 self.qmin = 1e-16 283 if qmax == None: 284 self.qmax = math.sqrt(x_max*x_max +y_max*y_max) 283 285 ## new error image for fitting purpose 284 286 if self.err_data== None or self.err_data ==[]: … … 300 302 if qmax!=None: 301 303 self.qmax= qmax 302 304 305 self.radius= numpy.sqrt(self.x_bins_array**2 + self.y_bins_array**2) 306 self.index_model = (self.qmin <= self.radius)&(self.radius<= self.qmax) 303 307 304 308 def getFitRange(self):
Note: See TracChangeset
for help on using the changeset viewer.