Deprecate redundant kinetics methods in Python API#1202
Deprecate redundant kinetics methods in Python API#1202ischoegl merged 8 commits intoCantera:mainfrom
Conversation
1f0098c to
8ce1924
Compare
8ce1924 to
ab9c4ab
Compare
The method (introduced in f0868c7) is not part of a stable release and holds was intended to facilitate transitional behavior of the Kinetics.reaction_type method. Instead, the Kinetics.reaction_type method is completely replaced by the ReactionRate.type property of a specific Reaction.
Deprecated methods follow the C-API style for reaction-specific information and should be accessed from the associated Reaction object instead.
Codecov Report
@@ Coverage Diff @@
## main #1202 +/- ##
==========================================
- Coverage 65.41% 65.38% -0.03%
==========================================
Files 318 318
Lines 46085 46095 +10
Branches 19604 19604
==========================================
- Hits 30145 30139 -6
- Misses 13426 13442 +16
Partials 2514 2514
Continue to review full report at Codecov.
|
ab9c4ab to
ed1571e
Compare
speth
left a comment
There was a problem hiding this comment.
Looks good to me -- I just had one minor suggestion, but I don't think it affects much either way.
Longer term, I'd like to eliminate these from C++ as well, though that would require updating the C / Matlab / Fortran APIs, which currently have no notion of a Reaction object.
bryanwweber
left a comment
There was a problem hiding this comment.
Thanks @ischoegl! A few small comments.
b9e3e56 to
406ef98
Compare
406ef98 to
0889b09
Compare
|
Ah, I see @speth approved. Feel free to |
Changes proposed in this pull request
Kinetics.reaction_type(i)->Kinetics.reaction(i).reaction_typeKinetics.is_reversible(i)->Kinetics.reaction(i).reversibleKinetics.reaction_equation(i)->Kinetics.reaction(i).equationKinetics.reactants(i)->Kinetics.reaction(i).reactant_stringKinetics.products(i)->Kinetics.reaction(i).product_stringReaction.__repr__, where essential information was lost in Eliminate unnecessary specialized Reaction types #1183If applicable, provide an example illustrating new features this pull request is introducing
After #1183, several reactions no longer show specialized information (which is held by the
ReactionRate), where specifically no identifiable information is shown forChebyshevandpressure-dependent-Arrhenius(Plog) (as well as the newBlowers-Maselandtwo-temperature-plasmatypes), e.g.This PR reformats
Reaction.__repr__to always include information for the rate specialization.Checklist
scons build&scons test) and unit tests address code coverage