def __find_limits(self): """ Find the beginning and the end of signal just after excitation buffer """ # if script is available, get limits according excitation length if self.scriptable: s = Script(self.filename) duration = s.get_excit_duration() self.start = round(duration / self.step) self.end = round(self.points / 2) # if script is not available, fix arbitrary limits else: self.start = 0 self.end = round(self.points / 2)
def __process_file(self): """ operations on files """ self.raw = RawDataset(self.filename) self.step = self.raw.step self.points = self.raw.points self.scr = None # if script is available, get limits according excitation length if self.raw.scriptable: self.scr = Script(self.filename) duration = self.scr.get_excit_duration() self.start = round(duration / self.step) self.end = self.points # if script is not available, fix arbitrary limits else: self.start = 0 self.end = self.points