bjodah / chempy

⚗ A package useful for chemistry written in Python
BSD 2-Clause "Simplified" License
544 stars 78 forks source link

Update parsing.py to include modifications for decimal stoich coefficients #177

Closed spizwhiz closed 4 years ago

spizwhiz commented 4 years ago

Hi,

I have made changes that seem to work for allowing decimal subscripts, as well as changing the hydrates notation from "." to ":".

I have not been able to get the latex to render the "." perfectly, and it still looks like the dot is a bit higher than it should be, but mathematically, everything seems to work.

This is my first pull request, so please let me know if I should so something differently.