-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix species identification in reaction wells when generating flux diagrams #145
Conversation
c2360d1
to
b849c19
Compare
e.g., if the concentrations were fed incorrectly
To properly count species in cases where a species label is contained within another species label, e.g., 'NO' and 'NO2'. This is avoided when using RMG labels like 'S(1243)', but is not avoided when generating flux diagrams for non-RMG generated Cantera models
To create edges only between a list of selected nodes if desired
Also refactored `report_flux_ratio`
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #145 +/- ##
==========================================
+ Coverage 73.46% 74.91% +1.44%
==========================================
Files 22 24 +2
Lines 2891 3317 +426
Branches 762 853 +91
==========================================
+ Hits 2124 2485 +361
- Misses 552 601 +49
- Partials 215 231 +16
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Properly count species in cases where a species label is contained within another species label, e.g.,
NO
andNO2
. This is avoided when using RMG labels likeS(1243)
, but is not avoided when generating flux diagrams for non-RMG generated Cantera models.Tests added.
Also added additional features to the flux diagram generator, such as
allowed_species
to only show specific species of interest, and whether to report the actual flux or the relative flux on the arrows.