Exemplo n.º 1
0
 def __treat_data(self, RawData):
     idx = RawData.TOF.argsort()
     TOF = RawData.TOF[idx] / 1000 - self.__IRDelay + self.__offset
     Signal = (RawData.Baseline - RawData.Signal)[idx]
     Signal = helper.subtract_baseline(Signal, left=self.__numbasecorr)
     idx, = np.where(TOF > 0)
     numomitt = len(TOF) - len(idx)
     if numomitt > 0:
         print "Warning: Omitting the first %d datapoints because TOF <= 0!" % numomitt
     return TOF[idx], Signal[idx]
Exemplo n.º 2
0
 def __init__(self, filename, numbasecorr=20, Normalize=True, plot=True):
     self.__filename = filename
     self.__numbasecorr = numbasecorr
     RawData = RawTOFData(filename)
     self.__RawData = RawData
     idx = RawData.TOF.argsort()
     self.__TOF = RawData.TOF[idx] / 1000
     Signal = (RawData.Baseline - RawData.Signal)[idx]
     self.__Signal = helper.subtract_baseline(Signal, left=self.__numbasecorr)
     if Normalize:
         self.__Signal = helper.normalize(self.__Signal)
         self.__ylabel = r"$\mathrm{Normalized\ REMPI\ Signal}$"
     else:
         self.__ylabel = r"$\mathrm{REMPI\ Signal}$"
     if plot:
         self.plot()