Changeset 95986b5 in sasview for sansmodels/src/sans/models/SphereModel.py
- Timestamp:
- Oct 29, 2008 1:58:33 PM (16 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:
- d7d143b0
- Parents:
- 92320e5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/SphereModel.py
r9316609 r95986b5 1 1 #!/usr/bin/env python 2 """ 3 This software was developed by the University of Tennessee as part of the 4 Distributed Data Analysis of Neutron Scattering Experiments (DANSE) 5 project funded by the US National Science Foundation. 6 7 If you use DANSE applications to do scientific research that leads to 8 publication, we ask that you acknowledge the use of the software with the 9 following sentence: 10 11 "This work benefited from DANSE software developed under NSF award DMR-0520547." 12 13 copyright 2008, University of Tennessee 14 """ 15 2 16 """ Provide functionality for a C extension model 3 17 4 18 WARNING: THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY 5 DO NOT MODIFY THIS FILE, MODIFY sphere.h19 DO NOT MODIFY THIS FILE, MODIFY ../c_extensions/sphere.h 6 20 AND RE-RUN THE GENERATOR SCRIPT 7 21 8 @author: Mathieu Doucet / UTK9 @contact: mathieu.doucet@nist.gov10 22 """ 11 23 … … 16 28 class SphereModel(CSphereModel, BaseComponent): 17 29 """ Class that evaluates a SphereModel model. 18 This file was auto-generated from sphere.h.30 This file was auto-generated from ../c_extensions/sphere.h. 19 31 Refer to that file and the structure it contains 20 32 for details of the model. … … 36 48 ## Name of the model 37 49 self.name = "SphereModel" 38 self.description ="""P(q)=(scale/V)*[3V(scatter_sld-solvent_sld)*(sin(qR)-qRcos(qR))/(qR)^3]^(2)50 self.description ="""P(q)=(scale/V)*[3V(scatter_sld-solvent_sld)*(sin(qR)-qRcos(qR))/(qR)^3]^(2) 39 51 +bkg 40 52 bkg: background level … … 53 65 def clone(self): 54 66 """ Return a identical copy of self """ 55 obj = SphereModel() 56 obj.params = copy.deepcopy(self.params) 57 return obj 67 return self._clone(SphereModel()) 58 68 59 69 def run(self, x = 0.0): … … 72 82 73 83 return CSphereModel.runXY(self, x) 84 85 def set_dispersion(self, parameter, dispersion): 86 """ 87 Set the dispersion object for a model parameter 88 @param parameter: name of the parameter [string] 89 @dispersion: dispersion object of type DispersionModel 90 """ 91 return CSphereModel.set_dispersion(self, parameter, dispersion.cdisp) 92 74 93 75 94 # End of file
Note: See TracChangeset
for help on using the changeset viewer.