Commit 0de0159
authored
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.File tree
15 files changed
+68487
-5319
lines changed- rmgpy/data/kinetics
- test/rmgpy
- data/kinetics
- test_data
- parsing_data
- testing_database/kinetics/families
- Disproportionation
- training
- H_Abstraction
- training
- tools
15 files changed
+68487
-5319
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
755 | | - | |
756 | 755 | | |
757 | 756 | | |
758 | 757 | | |
759 | 758 | | |
760 | 759 | | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
791 | 801 | | |
792 | 802 | | |
793 | 803 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4442 | 4442 | | |
4443 | 4443 | | |
4444 | 4444 | | |
4445 | | - | |
| 4445 | + | |
4446 | 4446 | | |
4447 | 4447 | | |
4448 | 4448 | | |
4449 | 4449 | | |
4450 | 4450 | | |
4451 | | - | |
| 4451 | + | |
| 4452 | + | |
| 4453 | + | |
4452 | 4454 | | |
4453 | | - | |
| 4455 | + | |
| 4456 | + | |
| 4457 | + | |
| 4458 | + | |
4454 | 4459 | | |
4455 | | - | |
| 4460 | + | |
4456 | 4461 | | |
4457 | 4462 | | |
4458 | 4463 | | |
4459 | 4464 | | |
4460 | | - | |
4461 | | - | |
4462 | | - | |
| 4465 | + | |
| 4466 | + | |
| 4467 | + | |
4463 | 4468 | | |
4464 | 4469 | | |
4465 | 4470 | | |
| |||
4468 | 4473 | | |
4469 | 4474 | | |
4470 | 4475 | | |
4471 | | - | |
4472 | | - | |
4473 | | - | |
4474 | | - | |
4475 | | - | |
4476 | | - | |
| 4476 | + | |
| 4477 | + | |
| 4478 | + | |
| 4479 | + | |
4477 | 4480 | | |
4478 | 4481 | | |
4479 | 4482 | | |
4480 | | - | |
| 4483 | + | |
4481 | 4484 | | |
4482 | | - | |
4483 | | - | |
4484 | | - | |
4485 | | - | |
4486 | | - | |
4487 | | - | |
| 4485 | + | |
| 4486 | + | |
| 4487 | + | |
| 4488 | + | |
| 4489 | + | |
| 4490 | + | |
| 4491 | + | |
| 4492 | + | |
| 4493 | + | |
| 4494 | + | |
| 4495 | + | |
| 4496 | + | |
| 4497 | + | |
| 4498 | + | |
| 4499 | + | |
4488 | 4500 | | |
4489 | | - | |
4490 | | - | |
4491 | | - | |
4492 | | - | |
| 4501 | + | |
4493 | 4502 | | |
4494 | | - | |
4495 | | - | |
4496 | | - | |
4497 | | - | |
4498 | | - | |
| 4503 | + | |
4499 | 4504 | | |
4500 | 4505 | | |
4501 | 4506 | | |
| |||
0 commit comments