-
Notifications
You must be signed in to change notification settings - Fork 256
Fixes to RMG Cantera yaml writers to better match ck2yaml #2947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
7b00786
Fix to_cantera() to use equation string, avoiding Cantera third-body …
rwest 6aef024
[yaml_cantera2] Use full elements list, like in antera1 method
djlucey 18f1772
counts surface sites and assigns the corresponding field
djlucey ea2f2be
use mol.number_of_surface_sites() instead of inline X-atom count
rwest f5c702d
adds transport note to each species, not just in annotated yaml to ma…
djlucey 7a1074f
Restore verbose gate on transport notes; strip them from ck2yaml non-…
rwest 6c7f2d8
separates gas reactions and surface reactions to match ck2yaml
djlucey b631993
adds 'state' to gas and surface phases to match ck2yaml
djlucey 95034c3
tests for entries and fields that are expected from ck2yaml and compa…
djlucey 8d0ea1d
fix tests to match actual verbose-gated transport note and sites>1 be…
rwest 3216fa7
yaml_fix generated recent files for comparison mainTest
djlucey ed8efc9
remove committed golden YAML files; gitignore from_main_test.yaml
rwest a2bad71
Create yaml_writer_data subdirs before copying test artifacts
rwest 416512c
Trim Cantera YAML and Chemkin elements blocks to elements in use
rwest be06c2d
Wipe stale Cantera/Chemkin output dirs at job startup
rwest 4bf3cb4
Fix Arkane call to write_elements_section after signature change
rwest 9a1d76e
Skip empty Cantera YAML 'elements' blocks to match ck2yaml output
rwest 168e030
Use => for irreversible reactions in Cantera YAML writer
rwest 5dd2d11
Distinguish three-body vs falloff equation notation in Cantera YAML 2
rwest 419c61b
Strip spurious efficiencies in yaml_cantera1 writer
rwest dd118cd
Emit 'type: three-body' for ThirdBody reactions in cantera1 writer
rwest ad5f72d
Preserve reactant ordering in cantera1 YAML equation strings
rwest 829791d
Render multi-line Cantera YAML 'note' fields as '|' block scalars
rwest a39f30f
Add missing 'Flux pairs' / 'Specific third body collider' to Cantera …
rwest 0db55c0
Number reactions in Cantera YAML notes the same way Chemkin does
rwest a70b99a
Tweaking comments in cantera yaml writers
rwest 1666074
Fix verboseComments handling in Cantera YAML writers
rwest 9880bb7
Remove efficiencies dict from yaml if it's empty
rwest b6890ed
Harden wrapped-flow note stripping in YAML cleanup
rwest 928b413
Revert "Harden wrapped-flow note stripping in YAML cleanup"
rwest 3468e40
Suppress CodeQL ReDoS alert on wrapped-flow note regex
rwest cffbbcb
Small things from code review, in yaml_cantera writers
rwest 9cf87ac
New tests for Chemkin writing with dynamic ELEMENTS block.
rwest faf59d9
[yaml_cantera2] handle negative A values in kinetics.
rwest d5be55e
[yaml_cantera1] handle negative A factors (also fixes to_cantera)
rwest db0862f
chemkin: print all used elements.
rwest 598a0d4
Move YAML note stripping helper to util
rwest f873f83
Added new utilTest.py file, to test the yaml note extractor.
rwest afe5a73
Rename rmgUtilTest so it doesn't clash with rmgpy/molecule/utilTest.py
rwest afc1db9
Fixes to tools/compare_cantera_yaml
rwest c806c6c
Tweaking the yaml note stripper
rwest 4db817b
Another weird case in the yaml note-stripper.
rwest 424096d
Ensure the test yaml snippets are valid.
rwest a7d12cc
Fixes to element handling for electrons, in Chemkin and Cantera.
rwest b49f12f
Move yaml_writer_data .gitignore rule into root .gitignore, and fixup
rwest 82186bb
Rename strip_yaml_notes helper function in rmgUtilTest
rwest 2cf7e9c
Add details to a comment in a unit test.
rwest a8911e8
Defenses in chemkin writing for electrons, and cythonization.
rwest a500581
Unit test for the new/safer to_cantera method for reactions with spec…
rwest bbbd1b2
Log warnings in Species.to_cantera when charge and # electrons disagree
rwest f566577
The CanteraWriter2 now also warns if # electrons differs from -charge.
rwest 585bafb
Deduplicate CanteraYamlFileComparer into a shared test helper.
rwest d6bd5e2
Harden the TestRecentlyGeneratedCanteraYaml*GasOnly tests.
rwest a140ce2
Remove some defunct outdated tests.
rwest e14b7c7
Fix testKeysMatch: pop header metadata from both yamls, not just yaml1.
rwest File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.