Changeset c9636f7 in sasview for sansmodels


Ignore:
Timestamp:
Mar 11, 2009 2:37:58 PM (15 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
996fd35
Parents:
d594a81
Message:

model multiplication and testing

Location:
sansmodels/src/sans/models
Files:
2 added
1 edited

Legend:

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

    r19ef1e5 rc9636f7  
    3131        #of the given model, exception or possible use 
    3232        self.description='' 
    33         #list of parameter that cannot be fitted 
     33        #list of parameter that can be fitted 
    3434        self.fixed= [] 
    3535            
     
    4141    
    4242    def is_fittable(self, par_name): 
    43         return par_name.lower() not in self.fixed 
     43        """ 
     44            Check if a given parameter is fittable or not 
     45            @param par_name: the parameter name to check  
     46        """ 
     47        return par_name.lower() in self.fixed 
    4448        #For the future 
    4549        #return self.params[str(par_name)].is_fittable() 
Note: See TracChangeset for help on using the changeset viewer.