Minor repair to the time_derivative method: numpy values instead of time series.