Ignore:
Timestamp:
Apr 15, 2009 10:39:38 AM (15 years ago)
Author:
Jae Cho <jhjcho@…>
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:
aa1e9a72
Parents:
27c5c26
Message:

fixed the first or last points missing from calculations

File:
1 edited

Legend:

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

    r69bee6d rb5e98540  
    525525        """ 
    526526         
    527         self.qmin.SetValue(format_number(self.state.qmin)) 
    528         self.qmax.SetValue(format_number(self.state.qmax))  
     527        #self.qmin.SetValue(format_number(self.state.qmin)) 
     528        #self.qmax.SetValue(format_number(self.state.qmax))  
     529        self.qmin.SetValue(str(self.state.qmin)) 
     530        self.qmax.SetValue(str(self.state.qmax))  
    529531        if self.state.npts!=None: 
    530532            self.npts.SetValue(format_number(self.state.npts))  
     
    12141216        #-------------------------------------------------------------- 
    12151217        self.qmin    = wx.TextCtrl(self, -1,size=(_BOX_WIDTH,20)) 
    1216         self.qmin.SetValue(format_number(self.qmin_x)) 
     1218        #For qmin and qmax, do not use format_number.(If do, qmin and max could be different from what is in the data.) 
     1219        #self.qmin.SetValue(format_number(self.qmin_x)) 
     1220        self.qmin.SetValue(str(self.qmin_x)) 
    12171221        self.qmin.SetToolTipString("Minimun value of Q in linear scale.") 
    12181222        self.qmin.Bind(wx.EVT_SET_FOCUS, self.onSetFocus) 
     
    12211225      
    12221226        self.qmax    = wx.TextCtrl(self, -1,size=(_BOX_WIDTH,20)) 
    1223         self.qmax.SetValue(format_number(self.qmax_x)) 
     1227        #For qmin and qmax, do not use format_number.(If do, qmin and max could be different from what is in the data.) 
     1228        #self.qmax.SetValue(format_number(self.qmax_x)) 
     1229        self.qmax.SetValue(str(self.qmax_x)) 
    12241230        self.qmax.SetToolTipString("Maximum value of Q in linear scale.") 
    12251231        self.qmax.Bind(wx.EVT_SET_FOCUS, self.onSetFocus) 
Note: See TracChangeset for help on using the changeset viewer.