Changeset d4bb639 in sasview for sansview/perspectives/fitting


Ignore:
Timestamp:
Sep 17, 2009 3:14:09 PM (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:
a85f622
Parents:
5582a9f1
Message:

Removed self.qmin.default…

File:
1 edited

Legend:

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

    r5582a9f1 rd4bb639  
    1414(NextStateEvent, EVT_NEXT_STATE)   = wx.lib.newevent.NewEvent() 
    1515_BOX_WIDTH = 76 
    16  
     16_QMIN_DEFAULT = 0.001 
     17_QMAX_DEFAULT = 0.13 
     18_NPTS_DEFAULT = 50 
    1719class BasicPage(wx.ScrolledWindow): 
    1820    """ 
     
    7375        ## check that the fit range is correct to plot the model again 
    7476        self.fitrange= True 
    75         ## Q range defaults 
    76         self.qmin_def = 0.001 
    77         self.qmax_def = 0.13 
    78         self.num_points_def = 50 
     77 
    7978        ## Q range 
    80         self.qmin_x= 0.001 
    81         self.qmax_x= 0.13 
    82         self.num_points= 50 
     79        self.qmin_x= _QMIN_DEFAULT 
     80        self.qmax_x= _QMAX_DEFAULT 
     81        self.num_points= _NPTS_DEFAULT 
    8382         
    8483        ## Create memento to save the current state 
     
    16681667        sizer.Add(wx.StaticText(self, -1, ' Max')) 
    16691668        sizer.Add(self.reset_qrange)    
    1670          
    1671          
    1672         sizer.Add((5,5)) 
    1673         sizer.Add(wx.StaticText(self, -1, 'Min')) 
    1674         sizer.Add(wx.StaticText(self, -1, 'Max')) 
    1675         sizer.Add(wx.StaticText(self, -1, 'Q range')) 
    16761669              
    16771670        sizer.Add(self.qmin) 
     
    17361729            self.qmax_x = max(self.data.x) 
    17371730        else: 
    1738             self.qmin_x = self.qmin_def 
    1739             self.qmax_x = self.qmax_def 
    1740             self.num_points = self.num_points_def 
     1731            self.qmin_x = _QMIN_DEFAULT 
     1732            self.qmax_x = _QMAX_DEFAULT 
     1733            self.num_points = _NPTS_DEFAULT             
    17411734            self.state.npts = self.num_points 
    17421735         
Note: See TracChangeset for help on using the changeset viewer.