Changeset 2e10b70 in sasview


Ignore:
Timestamp:
Dec 22, 2008 9:17:54 AM (15 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:
1c5b068
Parents:
988130c6
Message:

smearing interface started

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

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

    r08b9c6c8 r2e10b70  
    582582        #print "mon menu",model.name 
    583583        description=model.description 
    584         #self.fit_panel.add_model_page(model,description,name)     
     584        #self.fit_panel.add_model_page(model,description,name)   
     585         
    585586        self.draw_model(model,self.enable_model2D) 
    586587         
     
    603604                qstep =0.001 
    604605            
    605              
     606            print "x in data1D",qmin,qmax 
    606607            x = numpy.arange(qmin, qmax, qstep)         
    607608            xlen= len(x) 
  • sansview/perspectives/fitting/modelpage.py

    rdc317d1 r2e10b70  
    8080        self.sizer4.Add(wx.StaticText(self, -1, 'x range'),(iy, ix),(1,1),\ 
    8181                            wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 
    82         try: 
    83             if hasattr(model,'x'): 
    84                 qmin= numpy.min(model.x) 
    85              
    86         except: 
    87             qmin= numpy.min(model.xmin) 
     82        
     83        qmin= 0.001 
     84        qmax= 1.0 
    8885        ix += 1 
    8986        self.xmin    = wx.TextCtrl(self, -1,size=(_BOX_WIDTH,20)) 
    90         #self.xmin.SetValue(format_number(numpy.min(model.x))) 
     87        self.xmin.SetValue(format_number(qmin)) 
    9188        self.xmin.SetToolTipString("Minimun value of x in linear scale.") 
    9289        self.xmin.Bind(wx.EVT_KILL_FOCUS, self._onparamEnter) 
     
    9794        ix += 2 
    9895        self.xmax    = wx.TextCtrl(self, -1,size=(_BOX_WIDTH,20)) 
    99         #self.xmax.SetValue(format_number(numpy.max(data.x))) 
     96        self.xmax.SetValue(format_number(qmax)) 
    10097        self.xmax.SetToolTipString("Maximum value of x in linear scale.") 
    10198        self.xmax.Bind(wx.EVT_KILL_FOCUS, self._onparamEnter) 
     
    380377                     wx.PostEvent(self.parent.GrandParent, StatusEvent(status=\ 
    381378                            "Model Drawing  Error:wrong value entered : %s"% sys.exc_value)) 
    382             self.manager.draw_model(self.model,enable2D=self.model_view.GetValue()) 
    383             #self.manager.draw_model(self,model,description=None, enable1D=True,qmin=None,qmax=None, qstep=None) 
     379            self.manager.draw_model(self.model,qmin=float(self.xmin.GetValue()), 
     380                                    qmax=float(self.xmax.GetValue()), 
     381                                    enable2D=self.model_view.GetValue()) 
     382            #self.manager.draw_model(self,model,description=None, 
     383            # enable1D=True,qmin=None,qmax=None, qstep=None) 
     384             
     385             
     386             
     387             
     388             
Note: See TracChangeset for help on using the changeset viewer.