MAINT: unfinished work on the function to get a feasible history using the clever tmjp sampling scheme