Changeset c9636f7 in sasview for sansmodels/src/sans
- Timestamp:
- Mar 11, 2009 2:37:58 PM (16 years ago)
- 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
- Location:
- sansmodels/src/sans/models
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/BaseComponent.py
r19ef1e5 rc9636f7 31 31 #of the given model, exception or possible use 32 32 self.description='' 33 #list of parameter that can notbe fitted33 #list of parameter that can be fitted 34 34 self.fixed= [] 35 35 … … 41 41 42 42 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 44 48 #For the future 45 49 #return self.params[str(par_name)].is_fittable()
Note: See TracChangeset
for help on using the changeset viewer.