Combine two distributions to new one & scale parameter modifying probability depending on category

Are those individual distributions distr1 and distr2 sampled or just their means and stds?

Can you post the STAN model?

In the meantime you can have a look at this book port to pymc3, which includes examples of many cognitive models: pymc-resources/BCM at main · pymc-devs/pymc-resources · GitHub