Changeset 1834 for trunk/imports/G2pwd_fxye.py
 Timestamp:
 May 4, 2015 9:10:23 AM (8 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/imports/G2pwd_fxye.py
r1829 r1834 135 135 N = len(x) 136 136 if self.clockWd: 137 x = Tmap2TOF(self.TimeMap[cons[5]],self.clockWd[cons[5]]) 137 if len(self.clockWd) == 1: 138 x = Tmap2TOF(self.TimeMap['1'],self.clockWd['1']) 139 else: 140 x = Tmap2TOF(self.TimeMap[cons[5]],self.clockWd[cons[5]]) 138 141 return [np.array(x),np.array(y),np.array(w),np.zeros(N),np.zeros(N),np.zeros(N)] 139 142 … … 177 180 N = len(x) 178 181 if self.clockWd: 179 x = Tmap2TOF(self.TimeMap[cons[5]],self.clockWd[cons[5]]) 182 if len(self.clockWd) == 1: 183 x = Tmap2TOF(self.TimeMap['1'],self.clockWd['1']) 184 else: 185 x = Tmap2TOF(self.TimeMap[cons[5]],self.clockWd[cons[5]]) 180 186 return [np.array(x),np.array(y),np.array(w),np.zeros(N),np.zeros(N),np.zeros(N)] 181 187 … … 213 219 cons = TimeMap[8:].split() 214 220 mapNo = cons[0] 215 if mapNo == '10': mapNo = '1' #HIPD cluge!221 if 'TIME_MAP10' in TimeMap: mapNo = '1' #HIPD cluge! 216 222 Nch = int(cons[1]) 217 223 Nrec = int(cons[2])
Note: See TracChangeset
for help on using the changeset viewer.