Changeset 082c565 in sasview


Ignore:
Timestamp:
Jul 27, 2012 7:02:39 AM (12 years ago)
Author:
Kieran Campbell <kieranrcampbell@…>
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:
fd1aec6f
Parents:
48c547b
Message:

Added documentation for StarPolymer? model

Files:
3 added
5 edited

Legend:

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

    ra8d3b4f r082c565  
    337337        self.multi_func_list.append(SphericalSLDModel) 
    338338 
    339         from sans.models.StarPolymer import StarPolymer 
    340         self.shape_list.append(StarPolymer) 
    341         self.model_name_list.append(StarPolymer.__name__) 
    342339         
    343340        from sans.models.LinearPearlsModel import LinearPearlsModel 
     
    556553        self.shape_indep_list.append(RPA10Model) 
    557554        self.multi_func_list.append(RPA10Model) 
     555 
     556        from sans.models.StarPolymer import StarPolymer 
     557        self.shape_indep_list.append(StarPolymer) 
     558        self.model_name_list.append(StarPolymer.__name__) 
    558559 
    559560        from sans.models.SurfaceFractalModel import SurfaceFractalModel 
  • pr_inversion/test/test_output.txt

    rf1e0c1eb r082c565  
    33#alpha=0.0007 
    44#chi2=836.797 
    5 #elapsed=0.000865936 
     5#elapsed=0.0010469 
    66#qmin=None 
    77#qmax=None 
  • sansmodels/src/python_wrapper/wrapping.py

    r0a9686d r082c565  
    2626    # simultaneously generates 'sansmodels/installed_models.txt' 
    2727    # and 'sansmodels/src/c_models/c_models.cpp' 
    28     model_list_file = open(os.path.join("sansmodels","installed_models.txt"),"w") 
    29     for model in model_list: 
    30         model_list_file.write(model + "\n") 
    31  
    32     model_list_file.close() 
    3328     
    3429 
  • sansmodels/src/sans/models/media/model_functions.html

    r48c547b r082c565  
    2626<a href="#BEPolyelectrolyte">BEPolyelectrolyte</a>, 
    2727<a href="#BroadPeak">BroadPeak,<span style="text-decoration: none;"> </span><span style="color: windowtext; text-decoration: none;"><u><span style="color: blue;">CorrLength</span></u></span><span style="color: windowtext; text-decoration: none;">,</span></a> 
    28 <a href="#DAB_Model">DAB_Model</a>, <a href="#Debye">Debye</a>, <a href="#Number_Density_Fractal">FractalModel</a>, <a href="#FractalCoreShell">FractalCoreShell</a>, <a href="#GaussLorentzGel">GaussLorentzGel</a>, <a href="#Guinier">Guinier</a>, <a href="#GuinierPorod">GuinierPorod</a>, <a href="#Lorentz">Lorentz</a>, <a href="#Mass_Fractal">MassFractalModel</a>, <a href="#MassSurface_Fractal">MassSurfaceFractal</a>, <a href="#Peak%20Gauss%20Model">PeakGaussModel</a>, <a href="#Peak%20Lorentz%20Model">PeakLorentzModel</a>, <a href="#Poly_GaussCoil">Poly_GaussCoil</a>, <a href="#PolymerExclVolume">PolyExclVolume</a>, <a href="#PorodModel">PorodModel</a>, <a href="#RPA10Model">RPA10Model</a><a href="model_functions.html#ReflectivityIIModel">, </a><a href="#Surface_Fractal">SurfaceFractalModel</a>, 
     28<a href="#DAB_Model">DAB_Model</a>, <a href="#Debye">Debye</a>, <a href="#Number_Density_Fractal">FractalModel</a>, <a href="#FractalCoreShell">FractalCoreShell</a>, <a href="#GaussLorentzGel">GaussLorentzGel</a>, <a href="#Guinier">Guinier</a>, <a href="#GuinierPorod">GuinierPorod</a>, <a href="#Lorentz">Lorentz</a>, <a href="#Mass_Fractal">MassFractalModel</a>, <a href="#MassSurface_Fractal">MassSurfaceFractal</a>, <a href="#Peak%20Gauss%20Model">PeakGaussModel</a>, <a href="#Peak%20Lorentz%20Model">PeakLorentzModel</a>, <a href="#Poly_GaussCoil">Poly_GaussCoil</a>, <a href="#PolymerExclVolume">PolyExclVolume</a>, <a href="#PorodModel">PorodModel</a>, <a href="#RPA10Model">RPA10Model</a>, <a href="#StarPolymer">StarPolymer</a>, <a href="#Surface_Fractal">SurfaceFractalModel</a>, 
    2929<a href="#Teubner%20Strey">Teubner Strey</a>, <a href="#TwoLorentzian">TwoLorentzian</a>, <a href="#TwoPowerLaw">TwoPowerLaw</a>, <a href="#UnifiedPowerRg">UnifiedPowerRg</a>, <a href="#LineModel">LineModel</a>, <a href="#ReflectivityModel">ReflectivityModel</a>, 
    3030<a href="#ReflectivityIIModel">ReflectivityIIModel</a>, <a href="#GelFitModel">GelFitModel</a>, <a href="#FractalO_Z">FractalO_Z</a>.</li> 
     
    82188218<p ><b><span style="font-size: 14pt;"></span></b><b><span style="font-size: 14pt;"></span></b>&nbsp;</p> 
    82198219<p ></p> 
     8220  <p  style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;">3.10.</span></b> 
     8221    <b> 
     8222      <span style="font-size: 7pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
     8223</span> 
     8224    </b> 
     8225    <b> 
     8226      <span style="font-size: 14pt;"><a name="StarPolymer"></a><a name="StarPolymerModel">Star Polymer with Gaussian Statistics</a></span> 
     8227  </b> 
     8228  </p> 
     8229  <p style="margin-left: 0.25in;">For a star with <i>f</i> arms: </p> 
     8230  <p  style="text-align: center;" align="center"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; position: relative; top: 4.5pt;"><img src="star1.png"></span> 
     8231  </p> 
     8232  <p  style="text-align: center;" align="center"> 
     8233    <span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; position: relative; top: 4.5pt;"><img src="star2.png" /></span> 
     8234  </p> 
     8235  <p style="text-align: center;" align="center"> 
     8236    <span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; position: relative; top: 4.5pt;"><img src="star3.png" /></span> 
     8237  </p> 
     8238  <p style="margin-left: 0.25in; float: top">where &lt;R<sub>g</sub><sup>2</sup>&gt; is the ensemble average radius of gyration squared of an arm. </p> 
     8239  <p  style="margin-left: 0.25in; text-align: center;" align="center">&nbsp;</p> 
     8240  <p  style="margin-left: 0.25in;">References: 
     8241  </p> 
     8242  <p  style="margin-left: 0.25in; text-indent: 0.25in;">H. Benoit, &nbsp; J. Polymer Science.,&nbsp; 11, 
     8243    596-599&nbsp; (1953)</p> 
     8244  <p>&nbsp;</p> 
     8245  
     8246 
    82208247<p  style="margin-left: 0.55in; text-indent: -0.3in;"><b><span style="font-size: 14pt;">3.10.</span></b><b><span style="font-size: 7pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    8221 </span></b><b><span style="font-size: 14pt;"><a name="Surface_Fractal"></a><a name="SurfaceFractalModel">SurfaceFractalModel</a></span></b></p> 
     8248</span></b> 
     8249<b><span style="font-size: 14pt;"> <a name="Surface_Fractal"></a><a name="SurfaceFractalModel">SurfaceFractalModel</a></span></b></p> 
    82228250 
    82238251<p  style="margin-left: 0.25in;">Calculates 
  • setup.py

    r7a211030 r082c565  
    217217smear_dir  = os.path.join("sansmodels", "src", "c_smearer") 
    218218wrapper_dir  = os.path.join("sansmodels", "src", "python_wrapper", "generated") 
     219model_dir = os.path.join("sansmodels", "src", "sans","models") 
     220 
    219221if os.path.isdir(wrapper_dir): 
    220222    for file in os.listdir(wrapper_dir):  
     
    225227sys.path.append(os.path.join("sansmodels", "src", "python_wrapper")) 
    226228from wrapping import generate_wrappers 
    227 generate_wrappers(header_dir=includedir,  
    228                   output_dir=os.path.join("sansmodels", "src", "sans", "models"),  
    229                   c_wrapper_dir=wrapper_dir) 
     229generate_wrappers(header_dir = includedir,  
     230                  output_dir = model_dir, 
     231                  c_wrapper_dir = wrapper_dir) 
    230232 
    231233IGNORED_FILES = [".svn"] 
     
    265267 
    266268package_dir["sans"] = os.path.join("sansmodels", "src", "sans") 
    267 package_dir["sans.models"] = os.path.join("sansmodels", "src", "sans", "models") 
     269package_dir["sans.models"] = model_dir 
     270 
    268271package_dir["sans.models.sans_extension"] = os.path.join("sansmodels", "src", "sans", "models", "sans_extension") 
    269272             
     
    273276smearer_sources = [os.path.join(smear_dir, "smearer.cpp"), 
    274277                  os.path.join(smear_dir, "smearer_module.cpp")] 
     278 
     279# compile list of installed models 
     280installed_model_file = open(os.path.join("sansmodels", 
     281                                         "installed_models.txt"),'w') 
     282not_models = ['BaseComponent', 
     283              'sans_extension', 
     284              'MulComponent', 
     285              'svn', 
     286              'media', 
     287              'SubComponent', 
     288              '__init__', 
     289              'dispersion_models', 
     290              'AddComponent', 
     291              'qsmearing'] 
     292 
     293for model in os.listdir(model_dir): 
     294    if not model.rstrip(".py") in not_models: 
     295        installed_model_file.write(model.rstrip(".py") + '\n') 
     296 
     297installed_model_file.close() 
    275298 
    276299if os.name=='nt': 
     
    312335else: 
    313336    required.extend(['pil']) 
     337 
     338 
     339 
    314340    
    315341 # Set up SansView     
Note: See TracChangeset for help on using the changeset viewer.