Ignore:
Timestamp:
Oct 6, 2010 4:54:35 PM (14 years ago)
Author:
Jae Cho <jhjcho@…>
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:
fbae881
Parents:
6d48919
Message:

addede new models and attr. non_fittable

File:
1 edited

Legend:

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

    ra1b2471 r35aface  
    99    of changing the number of shells between 1 and 4. 
    1010    """ 
    11     def __init__(self, n_shells=4): 
     11    def __init__(self, multfactor=1): 
    1212        BaseComponent.__init__(self) 
    1313        """ 
     
    2121        self.name = "CoreMultiShellModel" 
    2222        self.description="" 
    23         self.n_shells = n_shells 
     23        self.n_shells = multfactor 
    2424        ## Define parameters 
    2525        self.params = {} 
     
    2727        ## Parameter details [units, min, max] 
    2828        self.details = {} 
     29         
     30        # non-fittable parameters 
     31        self.non_fittable = model.non_fittable 
    2932         
    3033        ## dispersion 
     
    3942        self._set_fixed_params()   
    4043         
     44        ## functional multiplicity of the model 
     45        self.multiplicity = 5 
    4146        ## parameters with orientation: can be removed since there is no orientational params 
    4247        for item in self.model.orientation_params: 
Note: See TracChangeset for help on using the changeset viewer.