Delegating reactor#1130
Conversation
For 'after' delegates, if the return code from the wrapped function is non-zero, then the delegate's return value will be the sum of the values from the base and wrapped functions.
Avoids name clashes with existing Python names that may have different method signatures, e.g. Reactor.get_state.
The function for evaluating dy/dt no longer needs the vector of sensitivity parameters, and should not operate directly on the state vector (which should be processed by updateState).
af59e7d to
3df450c
Compare
Codecov Report
@@ Coverage Diff @@
## main #1130 +/- ##
==========================================
+ Coverage 73.49% 73.64% +0.14%
==========================================
Files 365 372 +7
Lines 48187 49257 +1070
==========================================
+ Hits 35417 36273 +856
- Misses 12770 12984 +214
Continue to review full report at Codecov.
|
speth
left a comment
There was a problem hiding this comment.
Thanks, @chinahg for opening this PR. I think most of the comments I have were about formatting issues. I see in the commit history a bit of "churn" where certain changes are made and then mostly undone in subsequent commits. I hope you can do a little tidying-up of these so that each commit stands alone as a complete and functional idea.
|
@chinahg - One additional thing -- the tests which run the Python examples are failing because |
3df450c to
7dcaea8
Compare
Implemented LHS/RHS notation in eval functions of Reactor classes Updated ReactorDelegator for new eval arguments
Required for LHS/RHS arguments Added name to authors list
Whitespace deletions, unnecessary comment removal, Doxygen string formatting
7dcaea8 to
ff6f6a8
Compare
|
The additional commits here have now been incorporated back into #1003, so I'm going to close this PR. |
Changes proposed in this pull request
If applicable, fill in the issue number this pull request is fixing
Closes #
If applicable, provide an example illustrating new features this pull request is introducing
Checklist
scons build&scons test) and unit tests address code coverage