Changeset 0b22cc6 in sasview
- Timestamp:
- May 12, 2011 2:59:18 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:
- 0685f45
- Parents:
- b46b1b9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pr_inversion/invertor.py
r1db4a53 r0b22cc6 105 105 Cinvertor.__init__(self) 106 106 107 def __setstate__(self, state): 108 """ 109 restore the state of invertor for pickle 110 """ 111 (self.__dict__,self.alpha, self.d_max, 112 self.q_min, self.q_max, 113 self.x, self.y, 114 self.err, self.has_bck, 115 self.slit_height, self.slit_width) = state 116 117 def __reduce_ex__(self, proto): 118 """ 119 Overwrite the __reduce_ex__ 120 """ 121 122 state = (self.__dict__, 123 self.alpha, self.d_max, 124 self.q_min, self.q_max, 125 self.x, self.y, 126 self.err, self.has_bck, 127 self.slit_height, self.slit_width, 128 ) 129 return (Invertor,tuple(), state, None, None) 130 107 131 def __setattr__(self, name, value): 108 132 """
Note: See TracChangeset
for help on using the changeset viewer.