Unexpected behavior while implementing OpenBUGS code in PyMC3

in the line that calculates var_sc, you have lambda_v right at the end when it should be lambda_c ? Not sure if that’s sufficient to explain all the issues.