Changeset 082c565 in sasview
- Timestamp:
- Jul 27, 2012 7:02:39 AM (12 years ago)
- 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
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/models.py
ra8d3b4f r082c565 337 337 self.multi_func_list.append(SphericalSLDModel) 338 338 339 from sans.models.StarPolymer import StarPolymer340 self.shape_list.append(StarPolymer)341 self.model_name_list.append(StarPolymer.__name__)342 339 343 340 from sans.models.LinearPearlsModel import LinearPearlsModel … … 556 553 self.shape_indep_list.append(RPA10Model) 557 554 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__) 558 559 559 560 from sans.models.SurfaceFractalModel import SurfaceFractalModel -
pr_inversion/test/test_output.txt
rf1e0c1eb r082c565 3 3 #alpha=0.0007 4 4 #chi2=836.797 5 #elapsed=0.00 08659365 #elapsed=0.0010469 6 6 #qmin=None 7 7 #qmax=None -
sansmodels/src/python_wrapper/wrapping.py
r0a9686d r082c565 26 26 # simultaneously generates 'sansmodels/installed_models.txt' 27 27 # 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()33 28 34 29 -
sansmodels/src/sans/models/media/model_functions.html
r48c547b r082c565 26 26 <a href="#BEPolyelectrolyte">BEPolyelectrolyte</a>, 27 27 <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>, 29 29 <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>, 30 30 <a href="#ReflectivityIIModel">ReflectivityIIModel</a>, <a href="#GelFitModel">GelFitModel</a>, <a href="#FractalO_Z">FractalO_Z</a>.</li> … … 8218 8218 <p ><b><span style="font-size: 14pt;"></span></b><b><span style="font-size: 14pt;"></span></b> </p> 8219 8219 <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;"> 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: "Times New Roman","serif"; 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: "Times New Roman","serif"; 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: "Times New Roman","serif"; position: relative; top: 4.5pt;"><img src="star3.png" /></span> 8237 </p> 8238 <p style="margin-left: 0.25in; float: top">where <R<sub>g</sub><sup>2</sup>> is the ensemble average radius of gyration squared of an arm. </p> 8239 <p style="margin-left: 0.25in; text-align: center;" align="center"> </p> 8240 <p style="margin-left: 0.25in;">References: 8241 </p> 8242 <p style="margin-left: 0.25in; text-indent: 0.25in;">H. Benoit, J. Polymer Science., 11, 8243 596-599 (1953)</p> 8244 <p> </p> 8245 8246 8220 8247 <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;"> 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> 8222 8250 8223 8251 <p style="margin-left: 0.25in;">Calculates -
setup.py
r7a211030 r082c565 217 217 smear_dir = os.path.join("sansmodels", "src", "c_smearer") 218 218 wrapper_dir = os.path.join("sansmodels", "src", "python_wrapper", "generated") 219 model_dir = os.path.join("sansmodels", "src", "sans","models") 220 219 221 if os.path.isdir(wrapper_dir): 220 222 for file in os.listdir(wrapper_dir): … … 225 227 sys.path.append(os.path.join("sansmodels", "src", "python_wrapper")) 226 228 from 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)229 generate_wrappers(header_dir = includedir, 230 output_dir = model_dir, 231 c_wrapper_dir = wrapper_dir) 230 232 231 233 IGNORED_FILES = [".svn"] … … 265 267 266 268 package_dir["sans"] = os.path.join("sansmodels", "src", "sans") 267 package_dir["sans.models"] = os.path.join("sansmodels", "src", "sans", "models") 269 package_dir["sans.models"] = model_dir 270 268 271 package_dir["sans.models.sans_extension"] = os.path.join("sansmodels", "src", "sans", "models", "sans_extension") 269 272 … … 273 276 smearer_sources = [os.path.join(smear_dir, "smearer.cpp"), 274 277 os.path.join(smear_dir, "smearer_module.cpp")] 278 279 # compile list of installed models 280 installed_model_file = open(os.path.join("sansmodels", 281 "installed_models.txt"),'w') 282 not_models = ['BaseComponent', 283 'sans_extension', 284 'MulComponent', 285 'svn', 286 'media', 287 'SubComponent', 288 '__init__', 289 'dispersion_models', 290 'AddComponent', 291 'qsmearing'] 292 293 for 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 297 installed_model_file.close() 275 298 276 299 if os.name=='nt': … … 312 335 else: 313 336 required.extend(['pil']) 337 338 339 314 340 315 341 # Set up SansView
Note: See TracChangeset
for help on using the changeset viewer.