def find_peaks_automatic(self, x, y, peak_ind): massif = Massif(self.img_data.img_data) cur_peak_points = massif.find_peaks([x, y]) if len(cur_peak_points): self.points.append(np.array(cur_peak_points)) self.points_index.append(peak_ind) return np.array(cur_peak_points)