-
-
Notifications
You must be signed in to change notification settings - Fork 45
Input component and Hydraulic changes #163
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
bradcarman
commented
May 1, 2023
- Input component that can now properly drive models from data. See: input component tutorial for more information
- Hydraulic/IsothermalCompressible now exports Tube instead of Pipe so as to not conflict with Base.Pipe
- Added Actuator component to Hydraulic library
Codecov Report
@@ Coverage Diff @@
## main #163 +/- ##
==========================================
- Coverage 60.23% 59.61% -0.62%
==========================================
Files 40 41 +1
Lines 1818 2028 +210
==========================================
+ Hits 1095 1209 +114
- Misses 723 819 +96
... and 4 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
It's not completely clear to me what kind of input data this new Input
component can handle, does the data have to be equidistantly sampled? I think the name Input
might be slightly unfortunate since
input
is a keyword in modelica with a completely different meaning. We have a similar metadata field in MTK[input = true]
which also has a different semantic meaning.- The functionality behind the
Input
component appears to be limited to sampled data inputs only, and the sample rate must be equidistant?SampledDataInput
may be a more descriptive name.
if T isa Float16 | ||
return NaN16 | ||
elseif T isa Float32 | ||
return NaN32 | ||
elseif T isa Float64 | ||
return NaN64 |
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(NaN)