def constrain_positive(self, regexp, warning=True): """ Set positive constraints. """ self.constrain(regexp, transformations.logexp(), warning=warning)
def constrain_positive(self, regexp): """ Set positive constraints. """ self.constrain(regexp, transformations.logexp())