-
-
Notifications
You must be signed in to change notification settings - Fork 232
feat: more robust inputs/outputs handling #3795
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
Open
AayushSabharwal
wants to merge
9
commits into
SciML:master
Choose a base branch
from
AayushSabharwal:as/new-io
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
cf79b7d
feat: add `inputs` and `outputs` fields to `System`
AayushSabharwal 052935e
feat: respect `inputs` and `outputs` fields in `inputs` and `outputs`…
AayushSabharwal 8bc0ed5
feat: update `inputs` and `outputs` fields in `inputs_to_parameters!`
AayushSabharwal fa9b869
test: test new input output behavior
AayushSabharwal 7482b71
refactor: improve error message for missing inputs/disturbance inputs…
AayushSabharwal 66b5412
fix: fix early exit in `inputs_to_parameters!`
AayushSabharwal 4ea87f1
refactor: always run input processing in `mtkcompile`
AayushSabharwal 3542211
fix: handle `inputs` and `outputs` in `flatten(::System)`
AayushSabharwal 7a8201f
feat: retain IO metadata in `toexpr(::AbstractSystem)`
AayushSabharwal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is this the PR that should address the ordering an number of inputs after
mtkcompile(..., inputs = [u1,u2])
? If so, it would be nice to include a test case where this failedhttps://github.com/JuliaComputing/DyadControlSystems.jl/actions/runs/17095167938/job/48477801369?pr=644#step:7:1727
I notice also that the build that was triggered still fails in almost the same place, but it now has a different error message than it had before
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.
The ordering was already fixed in #3804. We have an assertion for the ordering being maintained in
complete
, so if by chance something goes wrong it will surface as an error. I don't know how we would test it, since there isn't a specific condition where the ordering goes wrong. It's just that if we're not careful it might get shuffled around, which is what the assertion detects.The new failure in DyadControlSystems seems to me like a missing splat operation. It's trying to pass a
NamedTuple
of 4 matrices where the function expects them as 4 different arguments.Uh oh!
There was an error while loading. Please reload this page.
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.
Ah, so it has been a change in MTKv10 that went unnoticed before this fix then, I'll fix it separately.