Ignore:
Timestamp:
Oct 29, 2008 1:58:33 PM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

sans modelsgenerated with wrappergenerator c_models

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/CoreShellCylinderModel.py

    r9316609 r95986b5  
    11#!/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 
    216""" Provide functionality for a C extension model 
    317 
    418        WARNING: THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY 
    5                  DO NOT MODIFY THIS FILE, MODIFY core_shell_cylinder.h 
     19                 DO NOT MODIFY THIS FILE, MODIFY ../c_extensions/core_shell_cylinder.h 
    620                 AND RE-RUN THE GENERATOR SCRIPT 
    721 
    8     @author: Mathieu Doucet / UTK 
    9     @contact: mathieu.doucet@nist.gov 
    1022""" 
    1123 
     
    1628class CoreShellCylinderModel(CCoreShellCylinderModel, BaseComponent): 
    1729    """ Class that evaluates a CoreShellCylinderModel model.  
    18         This file was auto-generated from core_shell_cylinder.h. 
     30        This file was auto-generated from ../c_extensions/core_shell_cylinder.h. 
    1931        Refer to that file and the structure it contains 
    2032        for details of the model. 
     
    4254        ## Name of the model 
    4355        self.name = "CoreShellCylinderModel" 
    44         self.description= """P(q,alpha)= scale/Vs*f(q)^(2) + bkg  Where:\n\ 
     56        self.description ="""P(q,alpha)= scale/Vs*f(q)^(2) + bkg  Where:\n\ 
    4557                f(q)= 2(core_sld- solvant_sld)* Vc*sin[qLcos(alpha/2)]/\n\ 
    4658                [qLcos(alpha/2)]*J1(qRsin(alpha))/[qRsin(alpha)] +\n 2(shell_sld-solvent_sld)*Vs 
     
    7688    def clone(self): 
    7789        """ Return a identical copy of self """ 
    78         obj = CoreShellCylinderModel() 
    79         obj.params = copy.deepcopy(self.params) 
    80         return obj    
     90        return self._clone(CoreShellCylinderModel())    
    8191    
    8292    def run(self, x = 0.0): 
     
    95105         
    96106        return CCoreShellCylinderModel.runXY(self, x) 
     107         
     108    def set_dispersion(self, parameter, dispersion): 
     109        """ 
     110            Set the dispersion object for a model parameter 
     111            @param parameter: name of the parameter [string] 
     112            @dispersion: dispersion object of type DispersionModel 
     113        """ 
     114        return CCoreShellCylinderModel.set_dispersion(self, parameter, dispersion.cdisp) 
     115         
    97116    
    98117# End of file 
Note: See TracChangeset for help on using the changeset viewer.