Closed BobBurrow closed 5 years ago
Thank you Bob for reporting this, and I'm glad to hear that you've found chempy useful. I've changed the code for balance_stoichiometry as per user requests (added a few options), and I must have introduced this bug in that process. I will definitely look into this as soon as I find some time (and add a regression test to prevent the bug from resurfacing once fixed).
@BobBurrow, this is fixed in master. Thanks again for the report.
Thanks a lot! Glad I could help make ChemPy more helpful.
For the newer versions (I tested chempy versions 0.7.8 & 0.6.8), when I try to balance semi-reactions, I get the exception "ValueError: Component '0' not among products": :
This snippet worked fine for chempy 0.4.1:
Strangely, for 0.6.8 & 0.7.8, if I put the electrons on the wrong side, the function works, but returns negative coefficients:
I'm running python on OpenSuse Leap 15.0 which all the python packages updated (except for chempy for the version tests) using pip3.
I can do what I want with 0.4.1 (it's a huge time-saver!), but you should correct this bug.
Yours, Bob Burrow