Changeset fe9c19b4 in sasview for sansmodels/src/sans/models/DiamEllipFunc.py
- Timestamp:
- Dec 14, 2009 10:39:21 AM (15 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:
- 6e9976b
- Parents:
- 7975f2b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/DiamEllipFunc.py
rf9bf661 rfe9c19b4 28 28 class DiamEllipFunc(CDiamEllipFunc, BaseComponent): 29 29 """ Class that evaluates a DiamEllipFunc model. 30 31 32 33 30 This file was auto-generated from ..\c_extensions\DiamEllip.h. 31 Refer to that file and the structure it contains 32 for details of the model. 33 List of default parameters: 34 34 radius_a = 20.0 A 35 35 radius_b = 400.0 A … … 56 56 radius_a < radius_b: Oblate spheroid.""" 57 57 58 58 ## Parameter details [units, min, max] 59 59 self.details = {} 60 60 self.details['radius_a'] = ['A', None, None] 61 61 self.details['radius_b'] = ['A', None, None] 62 62 63 63 ## fittable parameters 64 64 self.fixed=['radius_a.width', 'radius_b.width'] 65 65 … … 70 70 """ Return a identical copy of self """ 71 71 return self._clone(DiamEllipFunc()) 72 73 def __getstate__(self): 74 """ return object state for pickling and copying """ 75 print "__dict__",self.__dict__ 76 #self.__dict__['params'] = self.params 77 #self.__dict__['dispersion'] = self.dispersion 78 #self.__dict__['log'] = self.log 79 model_state = {'params': self.params, 'dispersion': self.dispersion, 'log': self.log} 80 81 return self.__dict__, model_state 82 83 def __setstate__(self, state): 84 """ create object from pickled state """ 85 86 self.__dict__, model_state = state 87 self.params = model_state['params'] 88 self.dispersion = model_state['dispersion'] 89 self.log = model_state['log'] 90 72 91 73 92 def run(self, x = 0.0):
Note: See TracChangeset
for help on using the changeset viewer.