Changeset fe9c19b4 in sasview for sansmodels/src/sans/models/TriaxialEllipsoidModel.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/TriaxialEllipsoidModel.py
r27972c1d rfe9c19b4 28 28 class TriaxialEllipsoidModel(CTriaxialEllipsoidModel, BaseComponent): 29 29 """ Class that evaluates a TriaxialEllipsoidModel model. 30 31 32 33 30 This file was auto-generated from ..\c_extensions\triaxial_ellipsoid.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 = 1.0 35 35 semi_axisA = 35.0 [A] … … 58 58 not be correct.""" 59 59 60 60 ## Parameter details [units, min, max] 61 61 self.details = {} 62 62 self.details['scale'] = ['', None, None] … … 70 70 self.details['axis_psi'] = ['[rad]', None, None] 71 71 72 72 ## fittable parameters 73 73 self.fixed=['axis_psi.width', 'axis_phi.width', 'axis_theta.width', 'semi_axisA.width', 'semi_axisB.width', 'semi_axisC.width'] 74 74 … … 79 79 """ Return a identical copy of self """ 80 80 return self._clone(TriaxialEllipsoidModel()) 81 82 def __getstate__(self): 83 """ return object state for pickling and copying """ 84 print "__dict__",self.__dict__ 85 #self.__dict__['params'] = self.params 86 #self.__dict__['dispersion'] = self.dispersion 87 #self.__dict__['log'] = self.log 88 model_state = {'params': self.params, 'dispersion': self.dispersion, 'log': self.log} 89 90 return self.__dict__, model_state 91 92 def __setstate__(self, state): 93 """ create object from pickled state """ 94 95 self.__dict__, model_state = state 96 self.params = model_state['params'] 97 self.dispersion = model_state['dispersion'] 98 self.log = model_state['log'] 99 81 100 82 101 def run(self, x = 0.0):
Note: See TracChangeset
for help on using the changeset viewer.