-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: support indexing in mixed discrete-continuous systems #53
Conversation
src/parameter_indexing.jl
Outdated
|
||
Return an indexable collection containing the value of all parameters in `p` at time index | ||
`t`. This is useful when parameter values change during the simulation | ||
(such as through callbacks) and their values are saved. `t` is the time index in the |
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.
t
is the time index
This sounds ambiguous, is t
time or index?
If it's an index, perhaps we could clarify by calling it ti
and say that it's an integer?
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.
I'll refactor it to be i
, since that's what we use for time index elsewhere. The only difference is it's the time index in the parameter timeseries
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.
Fixed in cc5da90
src/parameter_indexing.jl
Outdated
parameter_values_at_state_time(p, t) | ||
|
||
Return an indexable collection containing the value of all parameters in `p` at time | ||
index `t`. This is useful when parameter values change during the simulation (such as |
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.
same here
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.
Fixed in cc5da90
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #53 +/- ##
===========================================
+ Coverage 0.00% 38.83% +38.83%
===========================================
Files 6 7 +1
Lines 236 291 +55
===========================================
+ Hits 0 113 +113
+ Misses 236 178 -58 ☔ View full report in Codecov by Sentry. |
de0ac6e
to
e054e16
Compare
e054e16
to
728b89a
Compare
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
Add any other context about the problem here.