Ignore:
Timestamp:
Apr 6, 2013 1:23:46 PM (12 years ago)
Author:
Miguel Gonzalez <onzalezm@…>
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:
3e001f9
Parents:
e2271c5
Message:

Added checkbutton in fittingview perspective to allow log spacing of points for theory models

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/fitpage.py

    r0d795bf rcb270ad2  
    348348        sizer_smearer.Add((10, 10)) 
    349349         
    350         # StaticText for chi2, N(for fitting), Npts 
     350        # StaticText for chi2, N(for fitting), Npts + Log/linear spacing 
    351351        self.tcChi = BGTextCtrl(self, -1, "-", size=(75, 20), style=0) 
    352352        self.tcChi.SetToolTipString("Chi2/Npts(Fit)") 
     
    361361        self.Npts_total.SetToolTipString(\ 
    362362                                " Total Npts : total number of data points") 
    363          
     363                 
    364364        # Update and Draw button 
    365365        self.draw_button = wx.Button(self, wx.NewId(), 
     
    369369        self.draw_button.SetToolTipString("Compute and Draw.") 
    370370         
     371        self.points_sizer = wx.BoxSizer(wx.HORIZONTAL)  
     372        self.pointsbox = wx.CheckBox(self, -1, 'Log?', (10, 10)) 
     373        self.pointsbox.SetValue(False) 
     374        self.pointsbox.SetToolTipString("Check mark to use log spaced points") 
     375        wx.EVT_CHECKBOX(self, self.pointsbox.GetId(), self.select_log) 
     376         
     377        self.points_sizer.Add(wx.StaticText(self, -1, 'Npts    ')) 
     378        self.points_sizer.Add(self.pointsbox) 
     379 
    371380        box_description_1 = wx.StaticText(self, -1, '   Chi2/Npts') 
    372381        box_description_2 = wx.StaticText(self, -1, 'Npts(Fit)') 
    373         box_description_3 = wx.StaticText(self, -1, 'Total Npts') 
    374         box_description_3.SetToolTipString( \ 
    375                                 " Total Npts : total number of data points") 
     382        #box_description_3 = wx.StaticText(self, -1, 'Total Npts') 
     383        #box_description_3.SetToolTipString( \ 
     384        #                        " Total Npts : total number of data points") 
    376385         
    377386        sizer_fit.Add(box_description_1, 0, 0) 
    378387        sizer_fit.Add(box_description_2, 0, 0) 
    379         sizer_fit.Add(box_description_3, 0, 0) 
     388        sizer_fit.Add(self.points_sizer, 0, 0) 
     389        #sizer_fit.Add(box_description_3, 0, 0) 
    380390        sizer_fit.Add(self.draw_button, 0, 0) 
    381391        sizer_fit.Add(self.tcChi, 0, 0) 
     
    528538        self.btEditMask.SetToolTipString("Edit Mask.") 
    529539        self.EditMask_title = wx.StaticText(self, -1, ' Masking(2D)') 
    530  
     540         
    531541        sizer.Add(wx.StaticText(self, -1, '   Q range')) 
    532542        sizer.Add(wx.StaticText(self, -1, ' Min[1/A]')) 
     
    18481858         
    18491859        self.Npts_total.Bind(wx.EVT_MOUSE_EVENTS, self._npts_click) 
     1860        self.pointsbox.Disable() 
    18501861        self.dataSource.SetValue(data_name) 
    18511862        self.state.data = data 
     
    26482659                param2fit.append(item[1]) 
    26492660        self.parent._manager.set_param2fit(self.uid, param2fit) 
    2650  
     2661     
    26512662    def select_param(self, event): 
    26522663        """ 
Note: See TracChangeset for help on using the changeset viewer.