Convert from pm.DiscreteUniform to int?

Hi there,

I am trying to convert a variable, here called "c "from pm.DiscreteUniform into int.
I wrote a function my_epsilon which can take int or float values and returns a numpy array that can be used within the simulator.
I already tried converting it with int() or pm.intX(c), which worked for errors within the my_simulator function but here it does not.

with pm.Model() as model1:
    c = pm.DiscreteUniform(“c”, lower=0, upper=1000)
    epsilon_array=epsilon_generator(c)
    s = pm.Simulator(“s”, my_simulator, params=[c],
    distance=“gaussian”,
    epsilon=epsilon_array,
    observed=real_observation)
    trace_model1 = pm.sample_smc()

Thanks a lot! :slight_smile: