PyMC3 : Using a parameter as a limit of integral

I would imagine that’s the best solution. make sure you validate the gradient like in @aseyboldt’s reply.