Set prior and potential functions to return -inf instead of double_max as per guidelines in emcee manual.