Optimisation using `for i in np.where(data_for_day[:-1] >= pwr_threshold)[0]` ~ 5x speedup over previous commit
Optimisation using
`for i in np.where(data_for_day[:-1] >= pwr_threshold)[0]`
~ 5x speedup over previous commit

JackKelly/pda,JackKelly/pda