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

Storage: canonicalize molecular formula before query #556

Merged
merged 3 commits into from Feb 9, 2020

Conversation

mattwelborn
Copy link
Contributor

@mattwelborn mattwelborn commented Feb 4, 2020

Description

This PR sorts chemical formula to match qcel's order before querying the database. Now, e.g. searching for "NH3" will work.

I implemented the canonicalization code inside storage_socket, which is definitely the wrong place. Unfortunately, I think this should go in qcel?

Changelog description

Molecule queries filtered on molecular formula no longer depend on the order of elements.

Status

  • Code base linted
  • Ready to go

Copy link
Contributor

@dgasmith dgasmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rebase this? Should be good to go now that QCElemental is out.

@dgasmith dgasmith added this to the v0.13.1 milestone Feb 8, 2020
@codecov
Copy link

codecov bot commented Feb 9, 2020

Codecov Report

Merging #556 into master will increase coverage by 1.26%.
The diff coverage is n/a.

@dgasmith dgasmith merged commit b35acfb into MolSSI:master Feb 9, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants