Changeset 3df5ecf in sasview


Ignore:
Timestamp:
Jul 19, 2012 10:41:56 AM (12 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:
a8d3b4f
Parents:
07eb396
Message:

added units

Location:
invariantview/src/sans/perspectives/invariant
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • invariantview/src/sans/perspectives/invariant/invariant_details.py

    ree54fcf0 r3df5ecf  
    257257        """ 
    258258        uncertainty = "+/-"  
    259         unit_invariant = '[1/(cm * A)]' 
     259        unit_invariant = '[1/(cm * A^3)]' 
    260260      
    261261        invariant_txt = wx.StaticText(self, -1, 'Q* from Data ') 
  • invariantview/src/sans/perspectives/invariant/invariant_panel.py

    r07eb396 r3df5ecf  
    13141314        self.data_range_sizer = wx.BoxSizer(wx.HORIZONTAL) 
    13151315        #Sizer related to inputs 
    1316         self.sizer_input =  wx.FlexGridSizer(2, 5, 0, 0) 
     1316        self.sizer_input =  wx.FlexGridSizer(2, 6, 0, 0) 
    13171317        #Sizer related to inputs 
    13181318        inputs_box = wx.StaticBox(self, -1, "Customized Inputs") 
     
    16861686        """ 
    16871687        unit_volume = '' 
    1688         unit_surface = '' 
     1688        unit_surface = '[1/A]' 
    16891689        uncertainty = "+/-"  
    16901690        volume_txt = wx.StaticText(self, -1, 'Volume Fraction') 
     
    17521752        """ 
    17531753        uncertainty = "+/-"  
    1754         unit_invariant = '[1/(cm * A)]' 
     1754        unit_invariant = '[1/(cm * A^3)]' 
    17551755        invariant_total_txt = wx.StaticText(self, -1, 'Invariant Total [Q*]') 
    17561756        self.invariant_total_tcl = OutputTextCtrl(self, -1, 
     
    17881788        Draw widgets related to inputs 
    17891789        """ 
    1790         contrast_txt = wx.StaticText(self, -1, 'Contrast :')   
     1790        contrast_txt = wx.StaticText(self, -1, 'Contrast:')   
    17911791        self.contrast_tcl = InvTextCtrl(self, -1, size=(_BOX_WIDTH, 20), 
    17921792                                        style=0, name='contrast_tcl') 
     
    17941794        contrast_hint_txt = "Contrast" 
    17951795        self.contrast_tcl.SetToolTipString(contrast_hint_txt) 
    1796         contrast_unit_txt = wx.StaticText(self, -1, '[1/A^(2)]')   
     1796        contrast_unit_txt = wx.StaticText(self, -1, '[1/A^2]')   
    17971797        porod_const_txt = wx.StaticText(self, -1,  
    1798                                         'Porod Constant:\n(optional)\n')   
     1798                                        'Porod\nConstant:\n(optional)\n')   
     1799        porod_unit_txt = wx.StaticText(self, -1, '[1/(cm*A^4)]')  
    17991800        self.porod_constant_tcl = InvTextCtrl(self, -1,  
    18001801                                              size=(_BOX_WIDTH, 20), style=0, 
     
    18041805        self.porod_constant_tcl.SetToolTipString(porod_const_hint_txt) 
    18051806         
    1806         background_txt = wx.StaticText(self, -1, 'Background : ')   
     1807        background_txt = wx.StaticText(self, -1, 'Background:')   
    18071808        self.background_tcl = InvTextCtrl(self, -1, size=(_BOX_WIDTH, 20), 
    18081809                                          style=0, name='background_tcl')  
     
    18111812        self.background_tcl.SetToolTipString(background_hint_txt) 
    18121813        background_unit_txt = wx.StaticText(self, -1, '[1/cm]')   
    1813         scale_txt = wx.StaticText(self, -1, 'Scale : ')   
     1814        scale_txt = wx.StaticText(self, -1, 'Scale:')   
    18141815        self.scale_tcl = InvTextCtrl(self, -1, size=(_BOX_WIDTH, 20), style=0, 
    18151816                                     name='scale_tcl') 
     
    18201821                            (self.background_tcl, 0, wx.LEFT|wx.BOTTOM, 5), 
    18211822                            (background_unit_txt, 0, wx.LEFT|wx.BOTTOM, 5), 
    1822                             (scale_txt, 0, wx.LEFT|wx.BOTTOM, 20), 
     1823                            (scale_txt, 0, wx.LEFT|wx.BOTTOM, 10), 
    18231824                            (self.scale_tcl, 0, wx.LEFT|wx.BOTTOM|wx.RIGHT, 5), 
     1825                            (10, 10), 
    18241826                            (contrast_txt, 0, wx.LEFT|wx.BOTTOM, 5), 
    18251827                            (self.contrast_tcl, 0, wx.LEFT|wx.BOTTOM, 5), 
    18261828                            (contrast_unit_txt, 0, wx.LEFT|wx.BOTTOM, 5), 
    1827                             (porod_const_txt, 0, wx.LEFT, 20), 
    1828                 (self.porod_constant_tcl, 0, wx.LEFT|wx.BOTTOM|wx.RIGHT, 5)]) 
     1829                            (porod_const_txt, 0, wx.LEFT, 10), 
     1830                (self.porod_constant_tcl, 0, wx.LEFT|wx.BOTTOM|wx.RIGHT, 5), 
     1831                (porod_unit_txt, 0, wx.LEFT|wx.BOTTOM, 5)]) 
    18291832        self.inputs_sizer.Add(self.sizer_input) 
    18301833        
Note: See TracChangeset for help on using the changeset viewer.