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

fixes mcneilco/acas#728 empty mol files should be considered the same… #201

Merged

Conversation

brianbolt
Copy link
Contributor

… structure

Copy link
Collaborator

@bffrost bffrost left a comment

Choose a reason for hiding this comment

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

Seems a little hacky but I'm OK with it since it seems to fix a specific use case and I can't think of a broken use case. Theoretically seems like there could be distinct "structures" with query atoms but can't think of an actual use case for that.

@brianbolt
Copy link
Contributor Author

I removed the hackyness by using chemaxons "isEmpty" method and writing a similar method for indigo by checking if a structure has any atoms, bonds or s groups to determine if it is empty or not. I also changed any use of mol weight being 0.0 to use the new "isEmpty" method

Copy link
Collaborator

@bffrost bffrost left a comment

Choose a reason for hiding this comment

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

LGTM

@brianbolt brianbolt merged commit dfeefba into release/1.13.4 Feb 6, 2021
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.

2 participants