Changeset fe9c19b4 in sasview for sansmodels/src/sans/models/StackedDisksModel.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/StackedDisksModel.py
r27972c1d rfe9c19b4 28 28 class StackedDisksModel(CStackedDisksModel, BaseComponent): 29 29 """ Class that evaluates a StackedDisksModel model. 30 31 32 33 30 This file was auto-generated from ..\c_extensions\stacked_disks.h. 31 Refer to that file and the structure it contains 32 for details of the model. 33 List of default parameters: 34 34 scale = 0.01 35 35 radius = 3000.0 [A] … … 67 67 solvent_sld = the SLD of the solvent""" 68 68 69 69 ## Parameter details [units, min, max] 70 70 self.details = {} 71 71 self.details['scale'] = ['', None, None] … … 82 82 self.details['axis_phi'] = ['[rad]', None, None] 83 83 84 84 ## fittable parameters 85 85 self.fixed=['core_thick.width', 'layer_thick.width', 'radius.width', 'axis_theta.width', 'axis_phi.width'] 86 86 … … 91 91 """ Return a identical copy of self """ 92 92 return self._clone(StackedDisksModel()) 93 94 def __getstate__(self): 95 """ return object state for pickling and copying """ 96 print "__dict__",self.__dict__ 97 #self.__dict__['params'] = self.params 98 #self.__dict__['dispersion'] = self.dispersion 99 #self.__dict__['log'] = self.log 100 model_state = {'params': self.params, 'dispersion': self.dispersion, 'log': self.log} 101 102 return self.__dict__, model_state 103 104 def __setstate__(self, state): 105 """ create object from pickled state """ 106 107 self.__dict__, model_state = state 108 self.params = model_state['params'] 109 self.dispersion = model_state['dispersion'] 110 self.log = model_state['log'] 111 93 112 94 113 def run(self, x = 0.0):
Note: See TracChangeset
for help on using the changeset viewer.