Changeset 8960479 in sasview for sansmodels/src/sans


Ignore:
Timestamp:
May 20, 2011 11:02:30 AM (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:
0286321
Parents:
a436b2e
Message:

fixes multiplication model with multifunctional

File:
1 edited

Legend:

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

    r35aface r8960479  
    3333        self.details = {} 
    3434         
    35         # non-fittable parameters 
    36         self.non_fittable = p_model.non_fittable    
    37              
    3835        ##models  
    3936        self.p_model= p_model 
    40         self.s_model= s_model 
    41          
     37        self.s_model= s_model         
    4238        
    4339        ## dispersion 
     
    6763            multiplicity = 1 
    6864        ## functional multiplicity of the model 
    69         self.multiplicity = multiplicity       
    70          
     65        self.multiplicity = multiplicity     
     66           
     67        # non-fittable parameters 
     68        self.non_fittable = p_model.non_fittable   
     69        self.multiplicity_info = []  
     70        self.fun_list = {} 
     71        if self.non_fittable > 1: 
     72            try: 
     73                self.multiplicity_info = p_model.multiplicity_info  
     74                self.fun_list = p_model.fun_list 
     75            except: 
     76                pass 
     77        else: 
     78            self.multiplicity_info = [] 
     79             
    7180    def _clone(self, obj): 
    7281        """ 
Note: See TracChangeset for help on using the changeset viewer.