improve forced_response and its documentation by bnavigator · Pull Request #588 · python-control/python-control
Even without the modifications of this PR, testMarkovResults started to fail sporadically (#588 (comment)), because scipy.signal.dlsim returns not enough samples when the last element of the time series is just below a multiple of sys_dt
Fixed with a6ea296
TODO: cover the new lines. They were only triggered by the testMarkovResults test depending on the random seed.