Changeset c7a7e1b in sasview
- Timestamp:
- Apr 25, 2011 5:38:43 PM (14 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:
- 5901bb9
- Parents:
- d85ee8c
- Location:
- sansmodels/src/sans/models
- Files:
-
- 5 added
- 47 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/BCCrystalModel.py
r96656e3 rc7a7e1b 105 105 ## parameters with orientation 106 106 self.orientation_params = ['phi', 'psi', 'theta', 'phi.width', 'psi.width', 'theta.width'] 107 107 108 def __setstate__(self, state): 109 """ 110 restore the state of a model from pickle 111 """ 112 self.__dict__, self.params, self.dispersion = state 113 108 114 def __reduce_ex__(self, proto): 109 115 """ … … 111 117 c model. 112 118 """ 113 return (create_BCCrystalModel,tuple()) 119 state = (self.__dict__, self.params, self.dispersion) 120 return (create_BCCrystalModel,tuple(), state, None, None) 114 121 115 122 def clone(self): -
sansmodels/src/sans/models/BarBellModel.py
r96656e3 rc7a7e1b 103 103 ## parameters with orientation 104 104 self.orientation_params = ['phi', 'theta', 'phi.width', 'theta.width'] 105 105 106 def __setstate__(self, state): 107 """ 108 restore the state of a model from pickle 109 """ 110 self.__dict__, self.params, self.dispersion = state 111 106 112 def __reduce_ex__(self, proto): 107 113 """ … … 109 115 c model. 110 116 """ 111 return (create_BarBellModel,tuple()) 117 state = (self.__dict__, self.params, self.dispersion) 118 return (create_BarBellModel,tuple(), state, None, None) 112 119 113 120 def clone(self): -
sansmodels/src/sans/models/BinaryHSModel.py
r96656e3 rc7a7e1b 91 91 ## parameters with orientation 92 92 self.orientation_params = [] 93 93 94 def __setstate__(self, state): 95 """ 96 restore the state of a model from pickle 97 """ 98 self.__dict__, self.params, self.dispersion = state 99 94 100 def __reduce_ex__(self, proto): 95 101 """ … … 97 103 c model. 98 104 """ 99 return (create_BinaryHSModel,tuple()) 105 state = (self.__dict__, self.params, self.dispersion) 106 return (create_BinaryHSModel,tuple(), state, None, None) 100 107 101 108 def clone(self): -
sansmodels/src/sans/models/CSParallelepipedModel.py
r96656e3 rc7a7e1b 113 113 ## parameters with orientation 114 114 self.orientation_params = ['parallel_phi', 'parallel_psi', 'parallel_theta', 'parallel_phi.width', 'parallel_psi.width', 'parallel_theta.width'] 115 115 116 def __setstate__(self, state): 117 """ 118 restore the state of a model from pickle 119 """ 120 self.__dict__, self.params, self.dispersion = state 121 116 122 def __reduce_ex__(self, proto): 117 123 """ … … 119 125 c model. 120 126 """ 121 return (create_CSParallelepipedModel,tuple()) 127 state = (self.__dict__, self.params, self.dispersion) 128 return (create_CSParallelepipedModel,tuple(), state, None, None) 122 129 123 130 def clone(self): -
sansmodels/src/sans/models/CappedCylinderModel.py
r96656e3 rc7a7e1b 101 101 ## parameters with orientation 102 102 self.orientation_params = ['phi', 'theta', 'phi.width', 'theta.width'] 103 103 104 def __setstate__(self, state): 105 """ 106 restore the state of a model from pickle 107 """ 108 self.__dict__, self.params, self.dispersion = state 109 104 110 def __reduce_ex__(self, proto): 105 111 """ … … 107 113 c model. 108 114 """ 109 return (create_CappedCylinderModel,tuple()) 115 state = (self.__dict__, self.params, self.dispersion) 116 return (create_CappedCylinderModel,tuple(), state, None, None) 110 117 111 118 def clone(self): -
sansmodels/src/sans/models/CoreFourShellModel.py
r96656e3 rc7a7e1b 101 101 ## parameters with orientation 102 102 self.orientation_params = [] 103 103 104 def __setstate__(self, state): 105 """ 106 restore the state of a model from pickle 107 """ 108 self.__dict__, self.params, self.dispersion = state 109 104 110 def __reduce_ex__(self, proto): 105 111 """ … … 107 113 c model. 108 114 """ 109 return (create_CoreFourShellModel,tuple()) 115 state = (self.__dict__, self.params, self.dispersion) 116 return (create_CoreFourShellModel,tuple(), state, None, None) 110 117 111 118 def clone(self): -
sansmodels/src/sans/models/CoreShellCylinderModel.py
r96656e3 rc7a7e1b 111 111 ## parameters with orientation 112 112 self.orientation_params = ['axis_phi', 'axis_theta', 'axis_phi.width', 'axis_theta.width'] 113 113 114 def __setstate__(self, state): 115 """ 116 restore the state of a model from pickle 117 """ 118 self.__dict__, self.params, self.dispersion = state 119 114 120 def __reduce_ex__(self, proto): 115 121 """ … … 117 123 c model. 118 124 """ 119 return (create_CoreShellCylinderModel,tuple()) 125 state = (self.__dict__, self.params, self.dispersion) 126 return (create_CoreShellCylinderModel,tuple(), state, None, None) 120 127 121 128 def clone(self): -
sansmodels/src/sans/models/CoreShellEllipsoidModel.py
r96656e3 rc7a7e1b 109 109 ## parameters with orientation 110 110 self.orientation_params = ['axis_phi', 'axis_theta', 'axis_phi.width', 'axis_theta.width'] 111 111 112 def __setstate__(self, state): 113 """ 114 restore the state of a model from pickle 115 """ 116 self.__dict__, self.params, self.dispersion = state 117 112 118 def __reduce_ex__(self, proto): 113 119 """ … … 115 121 c model. 116 122 """ 117 return (create_CoreShellEllipsoidModel,tuple()) 123 state = (self.__dict__, self.params, self.dispersion) 124 return (create_CoreShellEllipsoidModel,tuple(), state, None, None) 118 125 119 126 def clone(self): -
sansmodels/src/sans/models/CoreShellModel.py
r96656e3 rc7a7e1b 91 91 ## parameters with orientation 92 92 self.orientation_params = [] 93 93 94 def __setstate__(self, state): 95 """ 96 restore the state of a model from pickle 97 """ 98 self.__dict__, self.params, self.dispersion = state 99 94 100 def __reduce_ex__(self, proto): 95 101 """ … … 97 103 c model. 98 104 """ 99 return (create_CoreShellModel,tuple()) 105 state = (self.__dict__, self.params, self.dispersion) 106 return (create_CoreShellModel,tuple(), state, None, None) 100 107 101 108 def clone(self): -
sansmodels/src/sans/models/CylinderModel.py
r96656e3 rc7a7e1b 96 96 ## parameters with orientation 97 97 self.orientation_params = ['cyl_phi', 'cyl_theta', 'cyl_phi.width', 'cyl_theta.width'] 98 98 99 def __setstate__(self, state): 100 """ 101 restore the state of a model from pickle 102 """ 103 self.__dict__, self.params, self.dispersion = state 104 99 105 def __reduce_ex__(self, proto): 100 106 """ … … 102 108 c model. 103 109 """ 104 return (create_CylinderModel,tuple()) 110 state = (self.__dict__, self.params, self.dispersion) 111 return (create_CylinderModel,tuple(), state, None, None) 105 112 106 113 def clone(self): -
sansmodels/src/sans/models/DiamCylFunc.py
r96656e3 rc7a7e1b 75 75 ## parameters with orientation 76 76 self.orientation_params = [] 77 77 78 def __setstate__(self, state): 79 """ 80 restore the state of a model from pickle 81 """ 82 self.__dict__, self.params, self.dispersion = state 83 78 84 def __reduce_ex__(self, proto): 79 85 """ … … 81 87 c model. 82 88 """ 83 return (create_DiamCylFunc,tuple()) 89 state = (self.__dict__, self.params, self.dispersion) 90 return (create_DiamCylFunc,tuple(), state, None, None) 84 91 85 92 def clone(self): -
sansmodels/src/sans/models/DiamEllipFunc.py
r96656e3 rc7a7e1b 79 79 ## parameters with orientation 80 80 self.orientation_params = [] 81 81 82 def __setstate__(self, state): 83 """ 84 restore the state of a model from pickle 85 """ 86 self.__dict__, self.params, self.dispersion = state 87 82 88 def __reduce_ex__(self, proto): 83 89 """ … … 85 91 c model. 86 92 """ 87 return (create_DiamEllipFunc,tuple()) 93 state = (self.__dict__, self.params, self.dispersion) 94 return (create_DiamEllipFunc,tuple(), state, None, None) 88 95 89 96 def clone(self): -
sansmodels/src/sans/models/EllipsoidModel.py
r96656e3 rc7a7e1b 100 100 ## parameters with orientation 101 101 self.orientation_params = ['axis_phi.width', 'axis_theta.width', 'axis_phi', 'axis_theta'] 102 102 103 def __setstate__(self, state): 104 """ 105 restore the state of a model from pickle 106 """ 107 self.__dict__, self.params, self.dispersion = state 108 103 109 def __reduce_ex__(self, proto): 104 110 """ … … 106 112 c model. 107 113 """ 108 return (create_EllipsoidModel,tuple()) 114 state = (self.__dict__, self.params, self.dispersion) 115 return (create_EllipsoidModel,tuple(), state, None, None) 109 116 110 117 def clone(self): -
sansmodels/src/sans/models/EllipticalCylinderModel.py
r96656e3 rc7a7e1b 93 93 ## parameters with orientation 94 94 self.orientation_params = ['cyl_phi', 'cyl_theta', 'cyl_psi', 'cyl_phi.width', 'cyl_theta.width', 'cyl_psi.width'] 95 95 96 def __setstate__(self, state): 97 """ 98 restore the state of a model from pickle 99 """ 100 self.__dict__, self.params, self.dispersion = state 101 96 102 def __reduce_ex__(self, proto): 97 103 """ … … 99 105 c model. 100 106 """ 101 return (create_EllipticalCylinderModel,tuple()) 107 state = (self.__dict__, self.params, self.dispersion) 108 return (create_EllipticalCylinderModel,tuple(), state, None, None) 102 109 103 110 def clone(self): -
sansmodels/src/sans/models/FCCrystalModel.py
r96656e3 rc7a7e1b 105 105 ## parameters with orientation 106 106 self.orientation_params = ['phi', 'psi', 'theta', 'phi.width', 'psi.width', 'theta.width'] 107 107 108 def __setstate__(self, state): 109 """ 110 restore the state of a model from pickle 111 """ 112 self.__dict__, self.params, self.dispersion = state 113 108 114 def __reduce_ex__(self, proto): 109 115 """ … … 111 117 c model. 112 118 """ 113 return (create_FCCrystalModel,tuple()) 119 state = (self.__dict__, self.params, self.dispersion) 120 return (create_FCCrystalModel,tuple(), state, None, None) 114 121 115 122 def clone(self): -
sansmodels/src/sans/models/FlexCylEllipXModel.py
r96656e3 rc7a7e1b 87 87 ## parameters with orientation 88 88 self.orientation_params = [] 89 89 90 def __setstate__(self, state): 91 """ 92 restore the state of a model from pickle 93 """ 94 self.__dict__, self.params, self.dispersion = state 95 90 96 def __reduce_ex__(self, proto): 91 97 """ … … 93 99 c model. 94 100 """ 95 return (create_FlexCylEllipXModel,tuple()) 101 state = (self.__dict__, self.params, self.dispersion) 102 return (create_FlexCylEllipXModel,tuple(), state, None, None) 96 103 97 104 def clone(self): -
sansmodels/src/sans/models/FlexibleCylinderModel.py
r96656e3 rc7a7e1b 85 85 ## parameters with orientation 86 86 self.orientation_params = [] 87 87 88 def __setstate__(self, state): 89 """ 90 restore the state of a model from pickle 91 """ 92 self.__dict__, self.params, self.dispersion = state 93 88 94 def __reduce_ex__(self, proto): 89 95 """ … … 91 97 c model. 92 98 """ 93 return (create_FlexibleCylinderModel,tuple()) 99 state = (self.__dict__, self.params, self.dispersion) 100 return (create_FlexibleCylinderModel,tuple(), state, None, None) 94 101 95 102 def clone(self): -
sansmodels/src/sans/models/FractalModel.py
r96656e3 rc7a7e1b 92 92 ## parameters with orientation 93 93 self.orientation_params = [] 94 94 95 def __setstate__(self, state): 96 """ 97 restore the state of a model from pickle 98 """ 99 self.__dict__, self.params, self.dispersion = state 100 95 101 def __reduce_ex__(self, proto): 96 102 """ … … 98 104 c model. 99 105 """ 100 return (create_FractalModel,tuple()) 106 state = (self.__dict__, self.params, self.dispersion) 107 return (create_FractalModel,tuple(), state, None, None) 101 108 102 109 def clone(self): -
sansmodels/src/sans/models/FuzzySphereModel.py
r96656e3 rc7a7e1b 89 89 ## parameters with orientation 90 90 self.orientation_params = [] 91 91 92 def __setstate__(self, state): 93 """ 94 restore the state of a model from pickle 95 """ 96 self.__dict__, self.params, self.dispersion = state 97 92 98 def __reduce_ex__(self, proto): 93 99 """ … … 95 101 c model. 96 102 """ 97 return (create_FuzzySphereModel,tuple()) 103 state = (self.__dict__, self.params, self.dispersion) 104 return (create_FuzzySphereModel,tuple(), state, None, None) 98 105 99 106 def clone(self): -
sansmodels/src/sans/models/Gaussian.py
r96656e3 rc7a7e1b 74 74 ## parameters with orientation 75 75 self.orientation_params = [] 76 76 77 def __setstate__(self, state): 78 """ 79 restore the state of a model from pickle 80 """ 81 self.__dict__, self.params, self.dispersion = state 82 77 83 def __reduce_ex__(self, proto): 78 84 """ … … 80 86 c model. 81 87 """ 82 return (create_Gaussian,tuple()) 88 state = (self.__dict__, self.params, self.dispersion) 89 return (create_Gaussian,tuple(), state, None, None) 83 90 84 91 def clone(self): -
sansmodels/src/sans/models/HardsphereStructure.py
r96656e3 rc7a7e1b 83 83 ## parameters with orientation 84 84 self.orientation_params = [] 85 85 86 def __setstate__(self, state): 87 """ 88 restore the state of a model from pickle 89 """ 90 self.__dict__, self.params, self.dispersion = state 91 86 92 def __reduce_ex__(self, proto): 87 93 """ … … 89 95 c model. 90 96 """ 91 return (create_HardsphereStructure,tuple()) 97 state = (self.__dict__, self.params, self.dispersion) 98 return (create_HardsphereStructure,tuple(), state, None, None) 92 99 93 100 def clone(self): -
sansmodels/src/sans/models/HayterMSAStructure.py
r96656e3 rc7a7e1b 93 93 ## parameters with orientation 94 94 self.orientation_params = [] 95 95 96 def __setstate__(self, state): 97 """ 98 restore the state of a model from pickle 99 """ 100 self.__dict__, self.params, self.dispersion = state 101 96 102 def __reduce_ex__(self, proto): 97 103 """ … … 99 105 c model. 100 106 """ 101 return (create_HayterMSAStructure,tuple()) 107 state = (self.__dict__, self.params, self.dispersion) 108 return (create_HayterMSAStructure,tuple(), state, None, None) 102 109 103 110 def clone(self): -
sansmodels/src/sans/models/HollowCylinderModel.py
r96656e3 rc7a7e1b 92 92 ## parameters with orientation 93 93 self.orientation_params = ['axis_phi', 'axis_theta', 'axis_phi.width', 'axis_theta.width'] 94 94 95 def __setstate__(self, state): 96 """ 97 restore the state of a model from pickle 98 """ 99 self.__dict__, self.params, self.dispersion = state 100 95 101 def __reduce_ex__(self, proto): 96 102 """ … … 98 104 c model. 99 105 """ 100 return (create_HollowCylinderModel,tuple()) 106 state = (self.__dict__, self.params, self.dispersion) 107 return (create_HollowCylinderModel,tuple(), state, None, None) 101 108 102 109 def clone(self): -
sansmodels/src/sans/models/LamellarFFHGModel.py
r96656e3 rc7a7e1b 89 89 ## parameters with orientation 90 90 self.orientation_params = [] 91 91 92 def __setstate__(self, state): 93 """ 94 restore the state of a model from pickle 95 """ 96 self.__dict__, self.params, self.dispersion = state 97 92 98 def __reduce_ex__(self, proto): 93 99 """ … … 95 101 c model. 96 102 """ 97 return (create_LamellarFFHGModel,tuple()) 103 state = (self.__dict__, self.params, self.dispersion) 104 return (create_LamellarFFHGModel,tuple(), state, None, None) 98 105 99 106 def clone(self): -
sansmodels/src/sans/models/LamellarModel.py
r96656e3 rc7a7e1b 86 86 ## parameters with orientation 87 87 self.orientation_params = [] 88 88 89 def __setstate__(self, state): 90 """ 91 restore the state of a model from pickle 92 """ 93 self.__dict__, self.params, self.dispersion = state 94 89 95 def __reduce_ex__(self, proto): 90 96 """ … … 92 98 c model. 93 99 """ 94 return (create_LamellarModel,tuple()) 100 state = (self.__dict__, self.params, self.dispersion) 101 return (create_LamellarModel,tuple(), state, None, None) 95 102 96 103 def clone(self): -
sansmodels/src/sans/models/LamellarPCrystalModel.py
r96656e3 rc7a7e1b 94 94 ## parameters with orientation 95 95 self.orientation_params = [] 96 96 97 def __setstate__(self, state): 98 """ 99 restore the state of a model from pickle 100 """ 101 self.__dict__, self.params, self.dispersion = state 102 97 103 def __reduce_ex__(self, proto): 98 104 """ … … 100 106 c model. 101 107 """ 102 return (create_LamellarPCrystalModel,tuple()) 108 state = (self.__dict__, self.params, self.dispersion) 109 return (create_LamellarPCrystalModel,tuple(), state, None, None) 103 110 104 111 def clone(self): -
sansmodels/src/sans/models/LamellarPSHGModel.py
r96656e3 rc7a7e1b 106 106 ## parameters with orientation 107 107 self.orientation_params = [] 108 108 109 def __setstate__(self, state): 110 """ 111 restore the state of a model from pickle 112 """ 113 self.__dict__, self.params, self.dispersion = state 114 109 115 def __reduce_ex__(self, proto): 110 116 """ … … 112 118 c model. 113 119 """ 114 return (create_LamellarPSHGModel,tuple()) 120 state = (self.__dict__, self.params, self.dispersion) 121 return (create_LamellarPSHGModel,tuple(), state, None, None) 115 122 116 123 def clone(self): -
sansmodels/src/sans/models/LamellarPSModel.py
r96656e3 rc7a7e1b 102 102 ## parameters with orientation 103 103 self.orientation_params = [] 104 104 105 def __setstate__(self, state): 106 """ 107 restore the state of a model from pickle 108 """ 109 self.__dict__, self.params, self.dispersion = state 110 105 111 def __reduce_ex__(self, proto): 106 112 """ … … 108 114 c model. 109 115 """ 110 return (create_LamellarPSModel,tuple()) 116 state = (self.__dict__, self.params, self.dispersion) 117 return (create_LamellarPSModel,tuple(), state, None, None) 111 118 112 119 def clone(self): -
sansmodels/src/sans/models/LogNormal.py
r96656e3 rc7a7e1b 74 74 ## parameters with orientation 75 75 self.orientation_params = [] 76 76 77 def __setstate__(self, state): 78 """ 79 restore the state of a model from pickle 80 """ 81 self.__dict__, self.params, self.dispersion = state 82 77 83 def __reduce_ex__(self, proto): 78 84 """ … … 80 86 c model. 81 87 """ 82 return (create_LogNormal,tuple()) 88 state = (self.__dict__, self.params, self.dispersion) 89 return (create_LogNormal,tuple(), state, None, None) 83 90 84 91 def clone(self): -
sansmodels/src/sans/models/Lorentzian.py
r96656e3 rc7a7e1b 74 74 ## parameters with orientation 75 75 self.orientation_params = [] 76 76 77 def __setstate__(self, state): 78 """ 79 restore the state of a model from pickle 80 """ 81 self.__dict__, self.params, self.dispersion = state 82 77 83 def __reduce_ex__(self, proto): 78 84 """ … … 80 86 c model. 81 87 """ 82 return (create_Lorentzian,tuple()) 88 state = (self.__dict__, self.params, self.dispersion) 89 return (create_Lorentzian,tuple(), state, None, None) 83 90 84 91 def clone(self): -
sansmodels/src/sans/models/MultiShellModel.py
r96656e3 rc7a7e1b 92 92 ## parameters with orientation 93 93 self.orientation_params = [] 94 94 95 def __setstate__(self, state): 96 """ 97 restore the state of a model from pickle 98 """ 99 self.__dict__, self.params, self.dispersion = state 100 95 101 def __reduce_ex__(self, proto): 96 102 """ … … 98 104 c model. 99 105 """ 100 return (create_MultiShellModel,tuple()) 106 state = (self.__dict__, self.params, self.dispersion) 107 return (create_MultiShellModel,tuple(), state, None, None) 101 108 102 109 def clone(self): -
sansmodels/src/sans/models/OnionModel.py
r96656e3 rc7a7e1b 202 202 ## parameters with orientation 203 203 self.orientation_params = [] 204 204 205 def __setstate__(self, state): 206 """ 207 restore the state of a model from pickle 208 """ 209 self.__dict__, self.params, self.dispersion = state 210 205 211 def __reduce_ex__(self, proto): 206 212 """ … … 208 214 c model. 209 215 """ 210 return (create_OnionModel,tuple()) 216 state = (self.__dict__, self.params, self.dispersion) 217 return (create_OnionModel,tuple(), state, None, None) 211 218 212 219 def clone(self): -
sansmodels/src/sans/models/ParallelepipedModel.py
r96656e3 rc7a7e1b 96 96 ## parameters with orientation 97 97 self.orientation_params = ['parallel_phi', 'parallel_psi', 'parallel_theta', 'parallel_phi.width', 'parallel_psi.width', 'parallel_theta.width'] 98 98 99 def __setstate__(self, state): 100 """ 101 restore the state of a model from pickle 102 """ 103 self.__dict__, self.params, self.dispersion = state 104 99 105 def __reduce_ex__(self, proto): 100 106 """ … … 102 108 c model. 103 109 """ 104 return (create_ParallelepipedModel,tuple()) 110 state = (self.__dict__, self.params, self.dispersion) 111 return (create_ParallelepipedModel,tuple(), state, None, None) 105 112 106 113 def clone(self): -
sansmodels/src/sans/models/Poly_GaussCoil.py
r96656e3 rc7a7e1b 83 83 ## parameters with orientation 84 84 self.orientation_params = [] 85 85 86 def __setstate__(self, state): 87 """ 88 restore the state of a model from pickle 89 """ 90 self.__dict__, self.params, self.dispersion = state 91 86 92 def __reduce_ex__(self, proto): 87 93 """ … … 89 95 c model. 90 96 """ 91 return (create_Poly_GaussCoil,tuple()) 97 state = (self.__dict__, self.params, self.dispersion) 98 return (create_Poly_GaussCoil,tuple(), state, None, None) 92 99 93 100 def clone(self): -
sansmodels/src/sans/models/RPAModel.py
r96656e3 rc7a7e1b 142 142 ## parameters with orientation 143 143 self.orientation_params = [] 144 144 145 def __setstate__(self, state): 146 """ 147 restore the state of a model from pickle 148 """ 149 self.__dict__, self.params, self.dispersion = state 150 145 151 def __reduce_ex__(self, proto): 146 152 """ … … 148 154 c model. 149 155 """ 150 return (create_RPAModel,tuple()) 156 state = (self.__dict__, self.params, self.dispersion) 157 return (create_RPAModel,tuple(), state, None, None) 151 158 152 159 def clone(self): -
sansmodels/src/sans/models/ReflAdvModel.py
r96656e3 rc7a7e1b 227 227 ## parameters with orientation 228 228 self.orientation_params = [] 229 229 230 def __setstate__(self, state): 231 """ 232 restore the state of a model from pickle 233 """ 234 self.__dict__, self.params, self.dispersion = state 235 230 236 def __reduce_ex__(self, proto): 231 237 """ … … 233 239 c model. 234 240 """ 235 return (create_ReflAdvModel,tuple()) 241 state = (self.__dict__, self.params, self.dispersion) 242 return (create_ReflAdvModel,tuple(), state, None, None) 236 243 237 244 def clone(self): -
sansmodels/src/sans/models/ReflModel.py
r96656e3 rc7a7e1b 178 178 ## parameters with orientation 179 179 self.orientation_params = [] 180 180 181 def __setstate__(self, state): 182 """ 183 restore the state of a model from pickle 184 """ 185 self.__dict__, self.params, self.dispersion = state 186 181 187 def __reduce_ex__(self, proto): 182 188 """ … … 184 190 c model. 185 191 """ 186 return (create_ReflModel,tuple()) 192 state = (self.__dict__, self.params, self.dispersion) 193 return (create_ReflModel,tuple(), state, None, None) 187 194 188 195 def clone(self): -
sansmodels/src/sans/models/SCCrystalModel.py
r96656e3 rc7a7e1b 105 105 ## parameters with orientation 106 106 self.orientation_params = ['phi', 'psi', 'theta', 'phi.width', 'psi.width', 'theta.width'] 107 107 108 def __setstate__(self, state): 109 """ 110 restore the state of a model from pickle 111 """ 112 self.__dict__, self.params, self.dispersion = state 113 108 114 def __reduce_ex__(self, proto): 109 115 """ … … 111 117 c model. 112 118 """ 113 return (create_SCCrystalModel,tuple()) 119 state = (self.__dict__, self.params, self.dispersion) 120 return (create_SCCrystalModel,tuple(), state, None, None) 114 121 115 122 def clone(self): -
sansmodels/src/sans/models/SLDCalFunc.py
r96656e3 rc7a7e1b 80 80 ## parameters with orientation 81 81 self.orientation_params = [] 82 82 83 def __setstate__(self, state): 84 """ 85 restore the state of a model from pickle 86 """ 87 self.__dict__, self.params, self.dispersion = state 88 83 89 def __reduce_ex__(self, proto): 84 90 """ … … 86 92 c model. 87 93 """ 88 return (create_SLDCalFunc,tuple()) 94 state = (self.__dict__, self.params, self.dispersion) 95 return (create_SLDCalFunc,tuple(), state, None, None) 89 96 90 97 def clone(self): -
sansmodels/src/sans/models/Schulz.py
r96656e3 rc7a7e1b 76 76 ## parameters with orientation 77 77 self.orientation_params = [] 78 78 79 def __setstate__(self, state): 80 """ 81 restore the state of a model from pickle 82 """ 83 self.__dict__, self.params, self.dispersion = state 84 79 85 def __reduce_ex__(self, proto): 80 86 """ … … 82 88 c model. 83 89 """ 84 return (create_Schulz,tuple()) 90 state = (self.__dict__, self.params, self.dispersion) 91 return (create_Schulz,tuple(), state, None, None) 85 92 86 93 def clone(self): -
sansmodels/src/sans/models/SphereModel.py
r96656e3 rc7a7e1b 85 85 ## parameters with orientation 86 86 self.orientation_params = [] 87 87 88 def __setstate__(self, state): 89 """ 90 restore the state of a model from pickle 91 """ 92 self.__dict__, self.params, self.dispersion = state 93 88 94 def __reduce_ex__(self, proto): 89 95 """ … … 91 97 c model. 92 98 """ 93 return (create_SphereModel,tuple()) 99 state = (self.__dict__, self.params, self.dispersion) 100 return (create_SphereModel,tuple(), state, None, None) 94 101 95 102 def clone(self): -
sansmodels/src/sans/models/SphereSLDModel.py
r96656e3 rc7a7e1b 205 205 ## parameters with orientation 206 206 self.orientation_params = [] 207 207 208 def __setstate__(self, state): 209 """ 210 restore the state of a model from pickle 211 """ 212 self.__dict__, self.params, self.dispersion = state 213 208 214 def __reduce_ex__(self, proto): 209 215 """ … … 211 217 c model. 212 218 """ 213 return (create_SphereSLDModel,tuple()) 219 state = (self.__dict__, self.params, self.dispersion) 220 return (create_SphereSLDModel,tuple(), state, None, None) 214 221 215 222 def clone(self): -
sansmodels/src/sans/models/SquareWellStructure.py
r96656e3 rc7a7e1b 91 91 ## parameters with orientation 92 92 self.orientation_params = [] 93 93 94 def __setstate__(self, state): 95 """ 96 restore the state of a model from pickle 97 """ 98 self.__dict__, self.params, self.dispersion = state 99 94 100 def __reduce_ex__(self, proto): 95 101 """ … … 97 103 c model. 98 104 """ 99 return (create_SquareWellStructure,tuple()) 105 state = (self.__dict__, self.params, self.dispersion) 106 return (create_SquareWellStructure,tuple(), state, None, None) 100 107 101 108 def clone(self): -
sansmodels/src/sans/models/StackedDisksModel.py
r96656e3 rc7a7e1b 100 100 ## parameters with orientation 101 101 self.orientation_params = ['axis_phi', 'axis_theta', 'axis_phi.width', 'axis_theta.width'] 102 102 103 def __setstate__(self, state): 104 """ 105 restore the state of a model from pickle 106 """ 107 self.__dict__, self.params, self.dispersion = state 108 103 109 def __reduce_ex__(self, proto): 104 110 """ … … 106 112 c model. 107 113 """ 108 return (create_StackedDisksModel,tuple()) 114 state = (self.__dict__, self.params, self.dispersion) 115 return (create_StackedDisksModel,tuple(), state, None, None) 109 116 110 117 def clone(self): -
sansmodels/src/sans/models/StickyHSStructure.py
r96656e3 rc7a7e1b 91 91 ## parameters with orientation 92 92 self.orientation_params = [] 93 93 94 def __setstate__(self, state): 95 """ 96 restore the state of a model from pickle 97 """ 98 self.__dict__, self.params, self.dispersion = state 99 94 100 def __reduce_ex__(self, proto): 95 101 """ … … 97 103 c model. 98 104 """ 99 return (create_StickyHSStructure,tuple()) 105 state = (self.__dict__, self.params, self.dispersion) 106 return (create_StickyHSStructure,tuple(), state, None, None) 100 107 101 108 def clone(self): -
sansmodels/src/sans/models/TriaxialEllipsoidModel.py
r96656e3 rc7a7e1b 90 90 ## parameters with orientation 91 91 self.orientation_params = ['axis_psi', 'axis_phi', 'axis_theta', 'axis_psi.width', 'axis_phi.width', 'axis_theta.width'] 92 92 93 def __setstate__(self, state): 94 """ 95 restore the state of a model from pickle 96 """ 97 self.__dict__, self.params, self.dispersion = state 98 93 99 def __reduce_ex__(self, proto): 94 100 """ … … 96 102 c model. 97 103 """ 98 return (create_TriaxialEllipsoidModel,tuple()) 104 state = (self.__dict__, self.params, self.dispersion) 105 return (create_TriaxialEllipsoidModel,tuple(), state, None, None) 99 106 100 107 def clone(self): -
sansmodels/src/sans/models/VesicleModel.py
r96656e3 rc7a7e1b 85 85 ## parameters with orientation 86 86 self.orientation_params = [] 87 87 88 def __setstate__(self, state): 89 """ 90 restore the state of a model from pickle 91 """ 92 self.__dict__, self.params, self.dispersion = state 93 88 94 def __reduce_ex__(self, proto): 89 95 """ … … 91 97 c model. 92 98 """ 93 return (create_VesicleModel,tuple()) 99 state = (self.__dict__, self.params, self.dispersion) 100 return (create_VesicleModel,tuple(), state, None, None) 94 101 95 102 def clone(self):
Note: See TracChangeset
for help on using the changeset viewer.