Changeset 411d8bf in sasview for sansmodels/src/python_wrapper
- Timestamp:
- Apr 12, 2012 3:38:37 PM (13 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:
- 92a52ff2
- Parents:
- 2e9c3ea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/python_wrapper/modelTemplate.txt
re08bd5b r411d8bf 27 27 from sans.models.BaseComponent import BaseComponent 28 28 from sans.models.sans_extension.c_models import [CPYTHONCLASS] 29 import copy30 29 31 30 def create_[PYTHONCLASS](): 31 """ 32 Create a model instance 33 """ 32 34 obj = [PYTHONCLASS]() 33 35 #[CPYTHONCLASS].__init__(obj) is called by [PYTHONCLASS] constructor … … 54 56 self.name = "[PYTHONCLASS]" 55 57 ## Model description 56 self.description = """[DESCRIPTION]"""58 self.description = """[DESCRIPTION]""" 57 59 58 60 [PAR_DETAILS] 59 61 ## fittable parameters 60 self.fixed =[FIXED]62 self.fixed = [FIXED] 61 63 62 64 ## non-fittable parameters … … 78 80 """ 79 81 state = (self.__dict__, self.params, self.dispersion) 80 return (create_[PYTHONCLASS], tuple(), state, None, None)82 return (create_[PYTHONCLASS], tuple(), state, None, None) 81 83 82 84 def clone(self):
Note: See TracChangeset
for help on using the changeset viewer.