datamol-io / datamol

Molecular Processing Made Easy.
https://docs.datamol.io
Apache License 2.0
462 stars 48 forks source link

More options for matching with ambiguity #113

Closed DomInvivo closed 2 years ago

DomInvivo commented 2 years ago

Added more options for allow_ambiguous_match, passed as strings. Notably, option "best" allows to find the match with the least amount of errors in terms of atomic number, bond type, and bond stereo.

Checklist:


codecov[bot] commented 2 years ago

Codecov Report

Merging #113 (0db5eef) into main (45331dd) will increase coverage by 0.10%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #113      +/-   ##
==========================================
+ Coverage   84.10%   84.20%   +0.10%     
==========================================
  Files          48       48              
  Lines        3536     3559      +23     
==========================================
+ Hits         2974     2997      +23     
  Misses        562      562              
Flag Coverage Δ
unittests 84.20% <100.00%> (+0.10%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
datamol/graph.py 97.41% <100.00%> (+0.63%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 45331dd...0db5eef. Read the comment docs.

DomInvivo commented 2 years ago

@maclandrol , the PR is ready for review.

maclandrol commented 2 years ago

Thanks @DomInvivo, I will look into it today.

DomInvivo commented 2 years ago

@maclandrol any news here?

DomInvivo commented 2 years ago

@maclandrol , I don't think I have permission to merge. Can you merge it for me?