ReactionMechanismGenerator / ARC

ARC - Automatic Rate Calculator
https://reactionmechanismgenerator.github.io/ARC/index.html
MIT License
43 stars 21 forks source link

Atom Mapping Fixup #672

Closed kfir4444 closed 1 year ago

kfir4444 commented 1 year ago

This PR solves a problem with the atom mapping algorithm in ARC, in which multiple scissions are required on the same species. A new method is introduced and tested. In addition, the make_bond_change function can now add a double bond between atoms that one of them does not have radicals. Additional fix ups are introduced.

codecov[bot] commented 1 year ago

Codecov Report

Merging #672 (5e27ec9) into main (308694c) will increase coverage by 0.05%. The diff coverage is 98.07%.

@@            Coverage Diff             @@
##             main     #672      +/-   ##
==========================================
+ Coverage   73.17%   73.23%   +0.05%     
==========================================
  Files          99       99              
  Lines       26423    26456      +33     
  Branches     5534     5538       +4     
==========================================
+ Hits        19336    19376      +40     
+ Misses       5719     5715       -4     
+ Partials     1368     1365       -3     
Flag Coverage Δ
unittests 73.23% <98.07%> (+0.05%) :arrow_up:

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

Impacted Files Coverage Δ
arc/mapping/engine.py 88.87% <96.07%> (-0.34%) :arrow_down:
arc/mapping/driver.py 73.83% <100.00%> (-1.64%) :arrow_down:
arc/mapping/driver_test.py 98.10% <100.00%> (ø)
arc/mapping/engine_test.py 99.56% <100.00%> (+0.02%) :arrow_up:
arc/reaction_test.py 90.94% <100.00%> (+1.38%) :arrow_up:

... and 1 file with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more