############################################################################## # This software was developed by the University of Tennessee as part of the # Distributed Data Analysis of Neutron Scattering Experiments (DANSE) # project funded by the US National Science Foundation. # # If you use DANSE applications to do scientific research that leads to # publication, we ask that you acknowledge the use of the software with the # following sentence: # # This work benefited from DANSE software developed under NSF award DMR-0520547 # # Copyright 2008-2011, University of Tennessee ############################################################################## """ Provide functionality for a C extension model :WARNING: THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src\sans\models\include\triaxial_ellipsoid.h AND RE-RUN THE GENERATOR SCRIPT """ from sans.models.BaseComponent import BaseComponent from sans.models.sans_extension.c_models import CTriaxialEllipsoidModel def create_TriaxialEllipsoidModel(): """ Create a model instance """ obj = TriaxialEllipsoidModel() # CTriaxialEllipsoidModel.__init__(obj) is called by # the TriaxialEllipsoidModel constructor return obj class TriaxialEllipsoidModel(CTriaxialEllipsoidModel, BaseComponent): """ Class that evaluates a TriaxialEllipsoidModel model. This file was auto-generated from src\sans\models\include\triaxial_ellipsoid.h. Refer to that file and the structure it contains for details of the model. List of default parameters: scale = 1.0 semi_axisA = 35.0 [A] semi_axisB = 100.0 [A] semi_axisC = 400.0 [A] sldEll = 1e-06 [1/A^(2)] sldSolv = 6.3e-06 [1/A^(2)] background = 0.0 [1/cm] axis_theta = 57.325 [deg] axis_phi = 57.325 [deg] axis_psi = 0.0 [deg] """ def __init__(self, multfactor=1): """ Initialization """ self.__dict__ = {} # Initialize BaseComponent first, then sphere BaseComponent.__init__(self) #apply(CTriaxialEllipsoidModel.__init__, (self,)) CTriaxialEllipsoidModel.__init__(self) self.is_multifunc = False ## Name of the model self.name = "TriaxialEllipsoidModel" ## Model description self.description = """ Note: During fitting ensure that the inequality A