I have intensity values over time that I saved in a one-dimensional numpy array called cell. I calculate a maximum during a certain time window by:
peak = max(cell[750:791]) Now I want to have the index of this specific peak value but only in the same time window. I tried:
idx_peak = np.where(cell[750:791] == peak) But this seems to give me all the indices from the entire array. How can I apply np.where in my specific time window? I hope my question is clear.