Skip to content

Commit

Permalink
Fixed table index issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fonnesbeck committed Dec 31, 2017
1 parent 0377908 commit c6da661
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pymc3/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,8 @@ def add_warns(*args):
warnings.filterwarnings('always')

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

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

Expand Down Expand Up @@ -661,6 +661,7 @@ def gradient(w):
se = ses[i]
weight = weights[i]
try:
import pdb; pdb.set_trace()
warn = warns[names.index(idx)]
except AttributeError:
warn = warns[idx]
Expand Down

0 comments on commit c6da661

Please sign in to comment.