https://github.com/mmider/FitzHughNagumo.jl/blob/c44fcf9a3fe2ec47148d556a42af960e08f6b1d4/src/mcmc.jl#L385 The validity of each segment can be check directly after `solve`ing that segment