Changeset 3087295 in sasview
- Timestamp:
- Jul 20, 2009 4:12:25 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:
- f50330b7
- Parents:
- 613476e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/model_thread.py
re733619 r3087295 261 261 self.starttime = time.time() 262 262 263 i_x_min=1e+16 #<--Any BIG # works. 264 i_x_max=0 263 265 for i_x in range(len(self.x)): 264 266 self.update(x= self.x, output=output ) … … 266 268 self.isquit() 267 269 if self.qmin <= self.x[i_x] and self.x[i_x] <= self.qmax: 270 #Determine the i_min and i_max (ie., min and max index of x) 271 if i_x_min == 1e+16: 272 i_x_min=i_x 273 i_x_max=i_x 268 274 value = self.model.run(self.x[i_x]) 269 275 output[i_x] = value 276 270 277 ##smearer the ouput of the plot 271 278 if self.smearer!=None: 272 output = self.smearer(output) 273 279 output = self.smearer(output) #Todo: Why always output[0]=0??? 280 281 ######Temp. FIX for Qrange w/ smear. Should not pass all the data to 'run' or 'smear'... 282 for i_x in range(len(self.x)): 283 if (i_x < i_x_min or i_x > i_x_max): 284 output[i_x] = 0 285 274 286 elapsed = time.time()-self.starttime 275 287 self.complete(x= self.x, y= output,
Note: See TracChangeset
for help on using the changeset viewer.