You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge PR #2787 from sevyharris to parse sources from autogenerated kinetics trees
Update comment parser for autogen trees.
The extract_source_from_comments() function was never updated for the autogenerated kinetics trees. This update is required to get the uncertainty tool working again for regular gas-phase RMG mechanisms.
Description of Changes:
* updated the Disproportionation family in the test database (copied from RMG-database 17cd80b2583ee94158c7585ccf392ceedc9dc020) so we'd have a real autogenerated tree to play with.
* updated the H_Abstraction family in the test database (also 17cd80b2) so there would be a hand-made tree with a complicated enough structure to generate all cases of kinetic family source comments.
* updated the kineticsTest to support the new families in the test database
* added code to parse the kinetics comments from the new autogenerated trees, and I also updated some of the existing parsing code to rely more on regex instead of tokens/splitting lines because it's more robust if the order gets switched around or more information gets added to the comments. I also updated the reconstruct_kinetics_from_source() function in RMG-Py/rmgpy/data/kinetics/database.py to handle ArrheniusBM rules.
* added more unit tests for the kinetics comment parsing code to exercise the autogenerated tree comments
* updated the uncertainty tool test to use the new values in the parsing_data chemkin file.
* updated the isotopesTest to use appropriate templates for the new H_Abstraction family in the test database.
0 commit comments