-
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
Open
djlucey
wants to merge
55
commits into
main
Choose a base branch
from
yaml_fix
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
e89f483
Fix to_cantera() to use equation string, avoiding Cantera third-body …
rwest 883416d
[yaml_cantera2] Use full elements list, like in antera1 method
djlucey 8006117
counts surface sites and assigns the corresponding field
djlucey d5ba4c3
use mol.number_of_surface_sites() instead of inline X-atom count
rwest 13bf857
adds transport note to each species, not just in annotated yaml to ma…
djlucey a29fee9
Restore verbose gate on transport notes; strip them from ck2yaml non-…
rwest 2286e18
separates gas reactions and surface reactions to match ck2yaml
djlucey e56e9d6
adds 'state' to gas and surface phases to match ck2yaml
djlucey 92f1a73
tests for entries and fields that are expected from ck2yaml and compa…
djlucey dc27b97
fix tests to match actual verbose-gated transport note and sites>1 be…
rwest 59933b9
yaml_fix generated recent files for comparison mainTest
djlucey 8ca54e7
remove committed golden YAML files; gitignore from_main_test.yaml
rwest d2e7850
Create yaml_writer_data subdirs before copying test artifacts
rwest 7001649
Trim Cantera YAML and Chemkin elements blocks to elements in use
rwest bbaf33b
Wipe stale Cantera/Chemkin output dirs at job startup
rwest a5a7e9a
Fix Arkane call to write_elements_section after signature change
rwest de4eb18
Skip empty Cantera YAML 'elements' blocks to match ck2yaml output
rwest c0ef7d7
Use => for irreversible reactions in Cantera YAML writer
rwest 952d706
Distinguish three-body vs falloff equation notation in Cantera YAML 2
rwest 41d1115
Strip spurious efficiencies in yaml_cantera1 writer
rwest d421b59
Emit 'type: three-body' for ThirdBody reactions in cantera1 writer
rwest d1d6fee
Preserve reactant ordering in cantera1 YAML equation strings
rwest b631544
Render multi-line Cantera YAML 'note' fields as '|' block scalars
rwest f81b2e8
Add missing 'Flux pairs' / 'Specific third body collider' to Cantera …
rwest 79cb9e6
Number reactions in Cantera YAML notes the same way Chemkin does
rwest f24b002
Tweaking comments in cantera yaml writers
rwest 6cd8606
Fix verboseComments handling in Cantera YAML writers
rwest 184df12
Remove efficiencies dict from yaml if it's empty
rwest 96ef35d
Harden wrapped-flow note stripping in YAML cleanup
rwest b87052d
Revert "Harden wrapped-flow note stripping in YAML cleanup"
rwest b935516
Suppress CodeQL ReDoS alert on wrapped-flow note regex
rwest 6d78620
Small things from code review, in yaml_cantera writers
rwest 4c24cce
New tests for Chemkin writing with dynamic ELEMENTS block.
rwest 28991b4
[yaml_cantera2] handle negative A values in kinetics.
rwest 69061e0
[yaml_cantera1] handle negative A factors (also fixes to_cantera)
rwest b47e282
chemkin: print all used elements.
rwest 07c9403
Move YAML note stripping helper to util
rwest 2bae0a5
Added new utilTest.py file, to test the yaml note extractor.
rwest 0b3be6f
Rename rmgUtilTest so it doesn't clash with rmgpy/molecule/utilTest.py
rwest c1c53c3
Fixes to tools/compare_cantera_yaml
rwest 937210f
Tweaking the yaml note stripper
rwest 36ec8e0
Another weird case in the yaml note-stripper.
rwest 9f03967
Ensure the test yaml snippets are valid.
rwest ac0d972
Fixes to element handling for electrons, in Chemkin and Cantera.
rwest 7986259
Move yaml_writer_data .gitignore rule into root .gitignore, and fixup
rwest 2d70fbd
Rename strip_yaml_notes helper function in rmgUtilTest
rwest be5acdb
Add details to a comment in a unit test.
rwest 7b8cddd
Defenses in chemkin writing for electrons, and cythonization.
rwest cefbc13
Unit test for the new/safer to_cantera method for reactions with spec…
rwest 0b2eaf3
Log warnings in Species.to_cantera when charge and # electrons disagree
rwest 6d1c738
The CanteraWriter2 now also warns if # electrons differs from -charge.
rwest 49eaab8
Deduplicate CanteraYamlFileComparer into a shared test helper.
rwest 463a09b
Harden the TestRecentlyGeneratedCanteraYaml*GasOnly tests.
rwest 99d0766
Remove some defunct outdated tests.
rwest 41e8648
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.