Skip to content

Commit c6da661

Browse files
committed
Fixed table index issue
1 parent 0377908 commit c6da661

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pymc3/stats.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,8 @@ def add_warns(*args):
584584
warnings.filterwarnings('always')
585585

586586
ics = []
587-
for c, (m, t) in enumerate(model_dict.items()):
588-
ics.append((c, ic_func(t, m, pointwise=True)))
587+
for m, t in model_dict.items():
588+
ics.append((m.name, ic_func(t, m, pointwise=True)))
589589

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

@@ -661,6 +661,7 @@ def gradient(w):
661661
se = ses[i]
662662
weight = weights[i]
663663
try:
664+
import pdb; pdb.set_trace()
664665
warn = warns[names.index(idx)]
665666
except AttributeError:
666667
warn = warns[idx]

0 commit comments

Comments
 (0)