def __set_time(self, time_list): """ @summary: Sets time-related properties of the data @param time_list: List of retention times @type time_list: ListType @author: Vladimir Likic """ # calculate the time step, its spreak, and along the way # check that retention times are increasing time_diff_list = [] for ii in range(len(time_list)-1): t1 = time_list[ii] t2 = time_list[ii+1] if not t2 > t1: error("problem with retention times detected") time_diff = t2 - t1 time_diff_list.append(time_diff) time_step = mean(time_diff_list) time_step_std = std(time_diff_list) self.__time_list = time_list self.__time_step = time_step self.__time_step_std = time_step_std self.__min_rt = min(time_list) self.__max_rt = max(time_list)