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

Molecule Hash Canary Tests #208

Merged
merged 1 commit into from
Feb 5, 2020
Merged

Molecule Hash Canary Tests #208

merged 1 commit into from
Feb 5, 2020

Conversation

dgasmith
Copy link
Collaborator

@dgasmith dgasmith commented Feb 5, 2020

Description

Adds all Fractal molecule hash canaries to QCElemental and reverts the order of operations change for hashing molecule in the from_data procedure. Hashing molecules is fairly sensitive to the order of operations and this was disrupted slightly when the from_data procedure stopped passing the validate flag through to the __init__. This was primarily done to prevent a duplicate to/from schema, but had the worrying effect that the geometry was not correctly rounded. A new flag has been introduced to fix this particular issue.

Changelog description

Fixes a Molecule hashing issue due to order of operations changes in Molecule.from_data.

Status

  • Code base linted
  • Ready to go

Copy link
Collaborator

@loriab loriab left a comment

Choose a reason for hiding this comment

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

glad you found the reason the code seemed to be doing more work than it needed a few weeks ago. sorry for "fixing" it to qcf's harm.

@dgasmith
Copy link
Collaborator Author

dgasmith commented Feb 5, 2020

It just shows that we do not have enough tests. Thousands of QCArchive tests, only caught by one!

@dgasmith dgasmith merged commit 1bf44c5 into MolSSI:master Feb 5, 2020
@dgasmith dgasmith deleted the hash_canary branch February 5, 2020 15:58
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.

3 participants