def __init__(self, multfactor=1): BaseComponent.__init__(self) """ :param n_shells: number of shells in the model, assumes 1<= n_shells <=4. """ ## Setting model name model description self.description = "" model = CoreFourShellModel() self.model = model self.name = "CoreMultiShellModel" self.description = "" self.n_shells = multfactor ## Define parameters self.params = {} ## Parameter details [units, min, max] self.details = {} # non-fittable parameters self.non_fittable = model.non_fittable ## dispersion self._set_dispersion() ## Define parameters self._set_params() ## Parameter details [units, min, max] self._set_details() #list of parameter that can be fitted self._set_fixed_params() self.orientation_params = [] self.magnetic_params = [] ## functional multiplicity info of the model # [int(maximum no. of functionality),"str(Titl), # [str(name of function0),...], [str(x-asix name of sld),...]] self.multiplicity_info = [ max_nshells, "No. of Shells:", [], ['Radius'] ] ## parameters with orientation: can be removed since there is no orientational params self._set_orientation_params()
def setUp(self): from sas.models.CoreFourShellModel import CoreFourShellModel self.comp = CoreFourShellModel()