Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More powerful/flexible "parse_formula" #11

Open
skirklin opened this issue Apr 15, 2014 · 0 comments
Open

More powerful/flexible "parse_formula" #11

skirklin opened this issue Apr 15, 2014 · 0 comments

Comments

@skirklin
Copy link
Member

RIght now parse_formula just uses regex to run through a string looking for things that look like elements (maybe) followed by a number. I would be good if it could do more though. Things that it would be good if it could do:

Li4(Fe2O3)2 -> {'Li':4, 'Fe':4: 'O':6}
3Gd2O3 + 4Li2O -> {'Li':8, 'Gd':6, 'O':13}

Maybe?
2Li5FeO4 - Fe2O3 -> {'Li':10, 'O':5}

tachyontraveler added a commit that referenced this issue Oct 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant