Closed wigging closed 8 months ago
As suggested in a reply on the Python Reddit, the balance attribute on the ChemicalEquation class should be a method. The current implementation is:
balance
ChemicalEquation
import chemics as cm equation = cm.ChemicalEquation('2 HCl + 2 Na -> 2 NaCl + H2') equation.balance
So using a method would be something like this:
import chemics as cm equation = cm.ChemicalEquation('2 HCl + 2 Na -> 2 NaCl + H2') equation.is_balanced()
As suggested in a reply on the Python Reddit, the
balance
attribute on theChemicalEquation
class should be a method. The current implementation is:So using a method would be something like this: