-
-
Notifications
You must be signed in to change notification settings - Fork 45
Input changed to SampledData #165
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #165 +/- ##
==========================================
- Coverage 59.59% 59.23% -0.36%
==========================================
Files 41 42 +1
Lines 2027 2068 +41
==========================================
+ Hits 1208 1225 +17
- Misses 819 843 +24
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
src/Blocks/sources.jl
Outdated
defaults = [output.u => get_sampled_data(0.0, buffer)]) #TODO: get initial value from buffer | ||
end |
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.
defaults = [output.u => get_sampled_data(0.0, buffer)]) #TODO: get initial value from buffer | |
end | |
defaults = [output.u => get_sampled_data(0.0, buffer)]) #TODO: get initial value from buffer | |
end | |
@deprecate Input SampledData |
Since a release was made with the Input
name, we should avoid breaking it completely.
|
||
This component is easy to use and is performative. However the data is locked to the `ODESystem` and can only be changed by building a new `ODESystem`. Therefore, running a batch of data would not be efficient. Below is an example of how to use the `TimeVaryingFunction` with `DataInterpolations` to build the function from discrete data. | ||
The `ModelingToolkitStandardLibrary.Blocks.TimeVaryingFunction` component is easy to use and is performative. However the data is locked to the `ODESystem` and can only be changed by building a new `ODESystem`. Therefore, running a batch of data would not be efficient. Below is an example of how to use the `TimeVaryingFunction` with `DataInterpolations` to build the function from sampled discrete data. |
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.
performative
-> performant
maybe?
No description provided.