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

Automatic retrieval of ambiguous chemical formulas #44

Open
AdityaSavara opened this issue Feb 4, 2023 · 0 comments
Open

Automatic retrieval of ambiguous chemical formulas #44

AdityaSavara opened this issue Feb 4, 2023 · 0 comments

Comments

@AdityaSavara
Copy link
Owner

Currently, if one uses chemical formulas (like O2), some of the times there is more than one NIST webbook entry. In this case, JDXConverter will not be able to retrieve a pattern. Instead, JDXConverter should return the top result and take the name from the page.

For example, CO2 is not considered unambiguous by JDX converter, but 'obviously' it should be carbon dioxide, which is the first result:
https://webbook.nist.gov/cgi/cbook.cgi?Name=CO2&NoIon=on&Units=SI

Perhaps a warning could be printed, that YYY was ambiguous, and that XXX chemical was retrieved, and that if the user intended for a different molecule to be retrieved, they need to enter an unambiguous molecular name and not a molecular formula.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant