Skip to content

Commit

Permalink
Incremented c counter and added more specific warning filters.
Browse files Browse the repository at this point in the history
  • Loading branch information
fonnesbeck committed Jan 3, 2018
1 parent f2a5153 commit b658993
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pymc3/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,11 +581,13 @@ def add_warns(*args):

with warnings.catch_warnings():
warnings.showwarning = add_warns
warnings.filterwarnings('always')
warnings.filterwarnings('always', 'For one or more samples')
warnings.filterwarnings('always', 'Estimated shape parameter')

ics = []
for m, t in model_dict.items():
ics.append((m.name, ic_func(t, m, pointwise=True)))
c += 1

ics.sort(key=lambda x: x[1][0])

Expand Down

0 comments on commit b658993

Please sign in to comment.