-
Notifications
You must be signed in to change notification settings - Fork 667
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
MOL2 parser populates elements attribute #3063
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple more comments, mostly responses to questions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nearly there I think, just a couple of extra things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple more things, we should be good to merge after this.
@IAlibay I could see your if/else vs try/catch benchmark twice but now that I resolved one conversation both disappeared. Anyways, I can reproduce your numbers locally: similar performance when no exception is triggered but a factor of 2 in performance drop when exceptions are triggered often. I'll change the code as suggested, thanks for bringing this up! |
I'll have a final look in the morning - hopefully we should be good. @richardjgowers - do you want to have another look or shall I dismiss your review? (I think your initial comments have all be addressed now) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the one final thing 🙃
Co-authored-by: Irfan Alibay <[email protected]>
Fixes #3062
Changes made in this Pull Request:
elements
attribute when parsing MOL2 fileThe elements are validated as for the
PDBParser
and empty records are used if the element is invalid.When #2927 and #3057 are merged I can add a test for the selection and remove the bonds from the
mol2_wrong_elements
test variable.PR Checklist