Ignore:
Timestamp:
Oct 18, 2010 8:44:19 AM (14 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:
89f3b66
Parents:
2e862a0
Message:

added kiessig fringe calculator and fixed slit length by ½ as our definition of slit length

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/perspectives/calculator/calculator.py

    r6137b150 r74b1770  
    112112        Returns a set of menu entries for tools 
    113113        """ 
     114        kiessig_help = "This tool is to approximatly compute the " 
     115        kiessig_help += "thickness of a shell or the size of " 
     116        kiessig_help += "particles \n from the width of a Kiessig fringe." 
    114117        sld_help = "Provides computation related to Scattering Length Density" 
    115118        slit_length_help = "Provides computation related to Slit Length Density" 
     
    117120        return [("SLD Calculator", sld_help, self.on_calculate_sld), 
    118121                ("Slit Size Calculator", slit_length_help, 
    119                                 self.on_calculate_slit_size)]#, 
     122                        self.on_calculate_slit_size), 
     123                ("Kiessig Thickness Calculator",  
     124                        kiessig_help, self.on_calculate_kiessig),]#, 
    120125                #("Data Editor", data_editor_help, self.on_edit_data)] 
    121126               
     
    127132        frame = DataEditorWindow(parent=self.parent, data=[], title="Data Editor") 
    128133        frame.Show(True) 
    129          
     134 
     135    def on_calculate_kiessig(self, event): 
     136        """ 
     137        Compute the Kiessig thickness 
     138        """ 
     139        from kiessig_calculator_panel import KiessigWindow 
     140        frame = KiessigWindow() 
     141        frame.Show(True)  
     142     
     143        
    130144    def on_calculate_sld(self, event): 
    131145        """ 
Note: See TracChangeset for help on using the changeset viewer.