At the end of each sample function call, the samples are wrapped with a Chain object. Yet, during the construction of such an object, it is explicitly assumed that the set of random variables is fixed for all samples. Unfortunately this is not true for BNP models.
@yebai would you know how this could be extended for these cases ? What are the constraints of the Chains object's constructor ?