pymc-devs/pymc — pull request #288 by fonnesbeck (2013-06-04 20:42:58+00:00)
Title: Put model running calls in __main__ block for examples

To better separate the model specification from model execution, for several (most) examples I've placed the model running calls in a if `__name__=='__main__'` block. I've left the ones derived from iPython notebooks and very simple models alone.

I have also added a `random_seeds` argument to `psample`, as I was starting to get stochastic errors with the diagnostic tests.