This looks way cleaner than my code in the op, but, since the logcdf for HalfStudentT is not implemented, as soon as i try to sample the posterior still raises a NotImplementedError in measurable_transform_logcdf probably caused by the pm.math.clip.