Changeset fb8daaaf in sasview
- Timestamp:
- Apr 13, 2009 8:10:51 PM (16 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:
- ff36f31
- Parents:
- 707436d
- Location:
- sansview/perspectives/fitting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage.py
r707436d rfb8daaaf 478 478 wx.PostEvent(self.manager.parent, StatusEvent(status=\ 479 479 "Data contains smearing information %s"%msg)) 480 self.manager.set_smearer(smear, qmin= float(self.qmin_x), 480 ## set smearing value whether or not the data contain the smearing info 481 self.manager.set_smearer(smear, qmin= float(self.qmin_x), 481 482 qmax= float(self.qmax_x)) 482 483 ## save the state enable smearing -
sansview/perspectives/fitting/fitting.py
r707436d rfb8daaaf 361 361 362 362 smearer =self.page_finder[current_pg].get_smearer() 363 if smearer != None: 364 self.draw_model( model=model, data= data, smearer= smearer, 363 self.draw_model( model=model, data= data, smearer= smearer, 365 364 qmin= qmin, qmax= qmax) 366 365 … … 632 631 model = self.page_finder[cpage].get_model() 633 632 qmin, qmax= self.page_finder[cpage].get_range() 633 smearer =self.page_finder[cpage].get_smearer() 634 634 #Replot models 635 635 msg= "Single Fit completed. plotting... %s:"%model.name 636 636 wx.PostEvent(self.parent, StatusEvent(status="%s " % msg)) 637 self.draw_model( model=model, data= metadata,qmin= qmin, qmax= qmax) 637 self.draw_model( model=model, data= metadata, smearer= smearer, 638 qmin= qmin, qmax= qmax) 638 639 639 640 except: … … 686 687 wx.PostEvent(self.parent, StatusEvent(status="%s " % msg)) 687 688 qmin, qmax= page.get_range() 688 self.draw_model( model=model, data= metadata,qmin= qmin, qmax= qmax) 689 smearer =self.page_finder[page].get_smearer() 690 self.draw_model( model=model, data= metadata, smearer=smearer, 691 qmin= qmin, qmax= qmax) 689 692 690 693 except: -
sansview/perspectives/fitting/model_thread.py
rcd3d15b rfb8daaaf 270 270 value = self.model.run(self.x[i_x]) 271 271 output[i_x] = value 272 272 ##smearer the ouput of the plot 273 273 if self.smearer!=None: 274 274 output = self.smearer(output) 275 276 275 277 276 elapsed = time.time()-self.starttime
Note: See TracChangeset
for help on using the changeset viewer.