Ignore:
Timestamp:
Jun 4, 2010 5:04:49 PM (14 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:
5062bbf
Parents:
7116b6e0
Message:

working on documentation

File:
1 edited

Legend:

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

    r13eb1c4 r79ac6f8  
    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. 
    62 
    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: 
     3############################################################################## 
     4#       This software was developed by the University of Tennessee as part of the 
     5#       Distributed Data Analysis of Neutron Scattering Experiments (DANSE) 
     6#       project funded by the US National Science Foundation. 
     7# 
     8#       If you use DANSE applications to do scientific research that leads to 
     9#       publication, we ask that you acknowledge the use of the software with the 
     10#       following sentence: 
     11# 
     12#       "This work benefited from DANSE software developed under NSF award DMR-0520547." 
     13# 
     14#       copyright 2008, University of Tennessee 
     15############################################################################## 
    1016 
    11         "This work benefited from DANSE software developed under NSF award DMR-0520547." 
    1217 
    13         copyright 2008, University of Tennessee 
    14 """ 
     18"""  
     19Provide functionality for a C extension model 
    1520 
    16 """ Provide functionality for a C extension model 
    17  
    18         WARNING: THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY 
    19                  DO NOT MODIFY THIS FILE, MODIFY ..\c_extensions\triaxial_ellipsoid.h 
    20                  AND RE-RUN THE GENERATOR SCRIPT 
     21:WARNING: THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY 
     22         DO NOT MODIFY THIS FILE, MODIFY ..\c_extensions\triaxial_ellipsoid.h 
     23         AND RE-RUN THE GENERATOR SCRIPT 
    2124 
    2225""" 
     
    2730     
    2831class TriaxialEllipsoidModel(CTriaxialEllipsoidModel, BaseComponent): 
    29     """ Class that evaluates a TriaxialEllipsoidModel model.  
    30         This file was auto-generated from ..\c_extensions\triaxial_ellipsoid.h. 
    31         Refer to that file and the structure it contains 
    32         for details of the model. 
    33         List of default parameters: 
     32    """  
     33    Class that evaluates a TriaxialEllipsoidModel model.  
     34    This file was auto-generated from ..\c_extensions\triaxial_ellipsoid.h. 
     35    Refer to that file and the structure it contains 
     36    for details of the model. 
     37    List of default parameters: 
    3438         scale           = 1.0  
    3539         semi_axisA      = 35.0 [A] 
     
    8387         
    8488    def __getstate__(self): 
    85         """ return object state for pickling and copying """ 
     89        """ 
     90        return object state for pickling and copying 
     91        """ 
    8692        model_state = {'params': self.params, 'dispersion': self.dispersion, 'log': self.log} 
    8793         
     
    8995         
    9096    def __setstate__(self, state): 
    91         """ create object from pickled state """ 
     97        """ 
     98        create object from pickled state 
     99         
     100        :param state: the state of the current model 
     101         
     102        """ 
    92103         
    93104        self.__dict__, model_state = state 
     
    97108         
    98109    
    99     def run(self, x = 0.0): 
    100         """ Evaluate the model 
    101             @param x: input q, or [q,phi] 
    102             @return: scattering function P(q) 
     110    def run(self, x=0.0): 
     111        """  
     112        Evaluate the model 
     113         
     114        :param x: input q, or [q,phi] 
     115         
     116        :return: scattering function P(q) 
     117         
    103118        """ 
    104119         
    105120        return CTriaxialEllipsoidModel.run(self, x) 
    106121    
    107     def runXY(self, x = 0.0): 
    108         """ Evaluate the model in cartesian coordinates 
    109             @param x: input q, or [qx, qy] 
    110             @return: scattering function P(q) 
     122    def runXY(self, x=0.0): 
     123        """  
     124        Evaluate the model in cartesian coordinates 
     125         
     126        :param x: input q, or [qx, qy] 
     127         
     128        :return: scattering function P(q) 
     129         
    111130        """ 
    112131         
    113132        return CTriaxialEllipsoidModel.runXY(self, x) 
    114133         
    115     def evalDistribution(self, x = []): 
    116         """ Evaluate the model in cartesian coordinates 
    117             @param x: input q[], or [qx[], qy[]] 
    118             @return: scattering function P(q[]) 
     134    def evalDistribution(self, x=[]): 
     135        """  
     136        Evaluate the model in cartesian coordinates 
     137         
     138        :param x: input q[], or [qx[], qy[]] 
     139         
     140        :return: scattering function P(q[]) 
     141         
    119142        """ 
    120143        return CTriaxialEllipsoidModel.evalDistribution(self, x) 
    121144         
    122145    def calculate_ER(self): 
    123         """ Calculate the effective radius for P(q)*S(q) 
    124             @return: the value of the effective radius 
     146        """  
     147        Calculate the effective radius for P(q)*S(q) 
     148         
     149        :return: the value of the effective radius 
     150         
    125151        """        
    126152        return CTriaxialEllipsoidModel.calculate_ER(self) 
     
    128154    def set_dispersion(self, parameter, dispersion): 
    129155        """ 
    130             Set the dispersion object for a model parameter 
    131             @param parameter: name of the parameter [string] 
    132             @dispersion: dispersion object of type DispersionModel 
     156        Set the dispersion object for a model parameter 
     157         
     158        :param parameter: name of the parameter [string] 
     159        :param dispersion: dispersion object of type DispersionModel 
     160         
    133161        """ 
    134162        return CTriaxialEllipsoidModel.set_dispersion(self, parameter, dispersion.cdisp) 
Note: See TracChangeset for help on using the changeset viewer.