Changeset fb8daaaf in sasview


Ignore:
Timestamp:
Apr 13, 2009 8:10:51 PM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

plotting with smearing fixed

Location:
sansview/perspectives/fitting
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitpage.py

    r707436d rfb8daaaf  
    478478                wx.PostEvent(self.manager.parent, StatusEvent(status=\ 
    479479                            "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), 
    481482                                      qmax= float(self.qmax_x))    
    482483        ## save the state enable smearing 
  • sansview/perspectives/fitting/fitting.py

    r707436d rfb8daaaf  
    361361         
    362362        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, 
    365364                qmin= qmin, qmax= qmax) 
    366365 
     
    632631            model = self.page_finder[cpage].get_model() 
    633632            qmin, qmax= self.page_finder[cpage].get_range() 
     633            smearer =self.page_finder[cpage].get_smearer() 
    634634            #Replot models 
    635635            msg= "Single Fit completed. plotting... %s:"%model.name 
    636636            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) 
    638639             
    639640        except: 
     
    686687                    wx.PostEvent(self.parent, StatusEvent(status="%s " % msg)) 
    687688                    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) 
    689692                     
    690693        except: 
  • sansview/perspectives/fitting/model_thread.py

    rcd3d15b rfb8daaaf  
    270270                value = self.model.run(self.x[i_x]) 
    271271                output[i_x] = value 
    272                  
     272        ##smearer the ouput of the plot     
    273273        if self.smearer!=None: 
    274274            output = self.smearer(output) 
    275              
    276275                       
    277276        elapsed = time.time()-self.starttime 
Note: See TracChangeset for help on using the changeset viewer.