Skip to content

fix parallel input or output interconnect bug (issue #1015) #1017

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

Merged
merged 5 commits into from
Jul 7, 2024

Conversation

murrayrm
Copy link
Member

This PR fixes the bug identified in #1015, where specification of a list of signals as the input was not handled properly (each signal in the list was treated as a separate input rather than connecting a single input to the list). There was a similar bug in the output processing code. Unit test that exposes the bug included.

I think this code can be cleaned up a bit (to avoid the duplication in processing for the two cases), but want to get a fix out quickly since there is no easy workaround.

(Also found and fixed a typo in a docstring.)

@coveralls
Copy link

Coverage Status

coverage: 94.515% (+0.009%) from 94.506%
when pulling 2e872f8 on murrayrm:interconnect_bug-29Jun2024
into e5394c4 on python-control:main.

@murrayrm murrayrm linked an issue Jun 29, 2024 that may be closed by this pull request
@murrayrm murrayrm added this to the 0.10.1 milestone Jun 30, 2024
@coveralls
Copy link

Coverage Status

coverage: 94.542% (+0.04%) from 94.506%
when pulling 421131c on murrayrm:interconnect_bug-29Jun2024
into e5394c4 on python-control:main.

@coveralls
Copy link

Coverage Status

coverage: 94.542% (+0.04%) from 94.506%
when pulling 1d239a7 on murrayrm:interconnect_bug-29Jun2024
into e5394c4 on python-control:main.

@murrayrm murrayrm force-pushed the interconnect_bug-29Jun2024 branch from 1d239a7 to 1964a86 Compare July 2, 2024 05:06
@coveralls
Copy link

Coverage Status

coverage: 94.539% (+0.006%) from 94.533%
when pulling 1964a86 on murrayrm:interconnect_bug-29Jun2024
into 4acc78b on python-control:main.

control/nlsys.py Outdated
specification (including the optional gain term). Numbered outputs
must be chosen from the list of subsystem outputs, but named
outputs can also be contained in the list of subsystem inputs.
mapped to overall system outputs. The entris for a connection are
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: “entries”

@coveralls
Copy link

Coverage Status

coverage: 94.539% (+0.006%) from 94.533%
when pulling 9a78e33 on murrayrm:interconnect_bug-29Jun2024
into 4acc78b on python-control:main.

@coveralls
Copy link

Coverage Status

coverage: 94.55% (+0.02%) from 94.533%
when pulling 584f39d on murrayrm:interconnect_bug-29Jun2024
into 4acc78b on python-control:main.

@murrayrm murrayrm merged commit 8c1ddec into python-control:main Jul 7, 2024
23 checks passed
@murrayrm murrayrm deleted the interconnect_bug-29Jun2024 branch July 7, 2024 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Interconnect" input specification.
4 participants