Commit d1fc2f9
Improve diagnostics for "Family had N reactants?" kinetics test failure
The dispatch else-branch in kinetics_check_sample_can_react raised a terse
ValueError ("Family had N reactants?: ...") that named neither the family nor
the underlying cause, making CI failures hard to diagnose. This branch is
reached whenever the number of reactant roots that produced at least one usable
sample molecule does not match the family
template, and it raised before the
logging loop ran, discarding any per-sample errors already queued.
Add an explicit check comparing the number of reactant roots that
yielded samples against the family template's reactant count. On a mismatch,
append a descriptive, per-root message logged together with
the queued per-sample errors (and then raises the standard
"Error Occurred. See log for details."), naming the family and the specific
reactant root(s) with no usable sample.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent ea19324 commit d1fc2f9
1 file changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1577 | 1577 | | |
1578 | 1578 | | |
1579 | 1579 | | |
1580 | | - | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
1581 | 1596 | | |
1582 | 1597 | | |
1583 | 1598 | | |
| |||
1670 | 1685 | | |
1671 | 1686 | | |
1672 | 1687 | | |
1673 | | - | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
1674 | 1695 | | |
1675 | 1696 | | |
1676 | 1697 | | |
| |||
0 commit comments