Problem with DiscreteUniform giving indices out of bounds

thanks for looking into this. I think a large part of my problem is trying to index theano variables and that does not work well. Also pymc2 did not actually work as well as I thought.