Hitting a weird error to do with RNGs in Scan in a custom function inside a Potential

I’m weary of those deepcopy calls! PyMC models can’t be trivially copied like that