xiaoruiDong / RDMC

Reaction Data and Molecular Conformers (RDMC) is a package dealing with reactions, molecules, conformers, majorly in 3D.
https://xiaoruidong.github.io/RDMC/
MIT License
22 stars 1 forks source link

Add the option to generate resonance when searching for family #17

Closed hwpang closed 2 years ago

hwpang commented 2 years ago

Currently, reactions with resonance would return None, None in the function generate_reaction_complex if the input reactants or products are not the exact resonance structure in the reaction, even if the resonance option is set to True. This is caused by find_reaction_family, where no resonance is considered when generating family_label.

This PR passes the resonance option from generate_reaction_complex to find_reaction_family to enable the generation of family_label with resonance.