cogwheel.likelihood.likelihood.check_bounds

cogwheel.likelihood.likelihood.check_bounds(lnlike_func)

Decorator that adds parameter bound checks to a lnlike function. lnlike_func needs to accept a parameter called par_dic. Check parameter ranges, return -inf if they are out of bounds.