예제 #1
0
 def runXY(self, x = 0.0):
     """ 
         Evaluate the model
         :param x: input q, or [q,phi]
         :return: scattering function P(q)
     """
     return Disperser.runXY(self, x)
예제 #2
0
 def __init__(self, model, paramList, sigmaList):
     """ 
     Initialization 
     
     :param model: Model to disperse [BaseComponent]
     :param paramList: list of parameters to disperse [List of strings]
     :param sigmaList: list of std deviations for Gaussian dispersion
                 [List of floats]
     
     """
     
     # Initialize BaseComponent first, then sphere
     BaseComponent.__init__(self)
     Disperser.__init__(self, model, paramList, sigmaList)
     ## Name of the model
     self.name = model.name
     ## Keep track of the underlying model
     self.model = model
     self.description =''
     #list of parameter that cannot be fitted
     self.fixed = []