Changeset bc7ad41 in sasmodels
 Timestamp:
 Feb 2, 2017 8:13:52 AM (6 years ago)
 Branches:
 master, core_shell_microgels, costrafo411, magnetic_model, ticket1257vesicleproduct, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
 Children:
 94d13f1
 Parents:
 2f8ee5f
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

sasmodels/sesans.py
r54f1d96 rbc7ad41 28 28 29 29 # transform arrays 30 _H = None # type: np.ndarray31 _H0 = None # type: np.ndarray30 H = None # type: np.ndarray 31 H0 = None # type: np.ndarray 32 32 33 def set_transform(self, SE, zaccept, Rmax):33 def __init__(self, SE, zaccept, Rmax): 34 34 if self.SE is None or len(SE) != len(self.SE) or np.any(SE != self.SE) or zaccept != self.zaccept or Rmax != self.Rmax: 35 35 self.SE, self.zaccept, self.Rmax = SE, zaccept, Rmax … … 38 38 39 39 def apply(self, Iq): 40 G0 = np.dot(self. _H0, Iq)41 G = np.dot(self. _H.T, Iq)40 G0 = np.dot(self.H0, Iq) 41 G = np.dot(self.H.T, Iq) 42 42 P = G  G0 43 43 return P … … 76 76 #H = dq / (2 * pi) * j0(repSE*repq)*repq 77 77 78 self. _H, self._H0 = H, H078 self.H, self.H0 = H, H0 79 79 80 80 class SESANS1D(SesansTransform): 81 def __init__(self, data, _H0, _H, q_calc):81 def __init__(self, data, H0, H, q_calc): 82 82 # x values of the data (Sasview requires these to be named "q") 83 83 self.q = data.x 84 self. _H0 = _H085 self. _H = _H84 self.H0 = H0 85 self.H = H 86 86 # Pysmear does some checks on the smearer object, these checks require the "data" object... 87 87 self.data=data
Note: See TracChangeset
for help on using the changeset viewer.