Changeset 4b30118 in sasview


Ignore:
Timestamp:
Mar 13, 2013 5:56:04 PM (11 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:
b4fdf0d
Parents:
49a8843
Message:

added help doc for gensans

Location:
calculatorview/src/sans/perspectives/calculator
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/gen_scatter_panel.py

    r9624cda r4b30118  
    939939        """ 
    940940        out = numpy.empty(0) 
    941         #s = time.time() 
     941        s = time.time() 
    942942        for ind in range(len(input[0])): 
    943943            if self.is_avg: 
     
    956956                outi = self.model.runXY(inputi) 
    957957                out = numpy.append(out, outi) 
    958         #print time.time() - s 
     958        print time.time() - s 
    959959        if self.is_avg or self.is_avg == None: 
    960960            self._draw1D(out) 
     
    20862086        media = calmedia.get_data_path(media='media') 
    20872087        path = os.path.join(media,"gen_sans_help.html")  
    2088         name = "Polarization Angle" 
    2089         frame = HelpWindow(self, -1, title=' Help: Polarization Angle',   
     2088        name = "Generic Scattering Calculator" 
     2089        frame = HelpWindow(self, -1,  
     2090                           title=' Help: GenSANS',   
    20902091                           pageToOpen=path, size=(865, 450))    
    20912092        try:  
     
    20942095            frame.lpanel.Hide()  
    20952096            frame.Show(True) 
     2097            add_icon(self.parent, frame) 
    20962098        except: 
    20972099            frame.Destroy()  
  • calculatorview/src/sans/perspectives/calculator/media/gen_sans_help.html

    rafcb052 r4b30118  
    11<body> 
    2  
    3 <h4>Polarization and Magnetic Scattering</h4> 
     2<h4>Generic Scattering Calculator:</h4> 
     3Polarization and Magnetic Scattering 
     4<br> 
     5<br> 
    46<ul> 
    57<li><a href="#theory">Theory:</a></li> 
    68<li><a href="#gui">GUI</a></li> 
     9<li><a href="#pdb">PDB Data</a></li> 
    710</ul> 
     11<br> 
    812<br> 
    913<b>1. <a name="theory">Theory</a> </b> 
     
    125129*Note III: For the nuclear scattering length density, only the real component is taken account. 
    126130<br> 
     131<br> 
     132<b>3. <a name="pdb">PDB Data</a> </b> 
     133<br> 
     134This Generic scattering calculator also supports some pdb files without considering polarized/magnetic scattering 
     135 so that the related parameters such as Up_*** will be ignored (see the Picture below). The calculation for fixed orientation uses (the first) Equation above resulting  
     136in a 2D output, whileas the scattering calculation averaged over all the orientations uses the Debye equation providing a 1D output: 
     137 <p> 
     138<img src="gen_debye_eq.gif"/> 
     139</p> 
     140<br> 
     141where v<sub>j</sub>&#946;<sub>j</sub> &#8801; b<sub>j</sub> is the scattering length of the j'th atom. 
     142The resultant outputs will be displayed in the DataExporer for further uses.  
     143<br> 
     144 <p> 
     145<img src="pdb_combo.jpg"/> 
     146</p> 
    127147</body> 
Note: See TracChangeset for help on using the changeset viewer.