Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add unit test illustrating issue #935 + add method keyword for tf2ss#937

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

murrayrm
Copy link
Member

This PR puts in some unit tests associated with issue#935, which looks like it is a problem in slycot where the tf2ss functionality (intd04ad) doesn't work properly. As a partial workaround, amethod keyword is added totf2ss (andss) that allowsmethod='scipy' to be used for SISO systems. Docstrings updated for the new keyword and a note on theslycot issue.

A bug report has been created in theslycot repository (#222 and the unit tests will fail when the bug is fixed (so we can go back and update the unit tests and documentation).

@murrayrmmurrayrm linked an issueOct 22, 2023 that may beclosed by this pull request
@coveralls
Copy link

coveralls commentedOct 22, 2023
edited
Loading

Coverage Status

coverage: 95.003%. first build
when pulling31793e6 on murrayrm:tf2ss_unstable_bug-21Oct2023
intoa44def1 on python-control:main.

@@ -2250,6 +2274,8 @@ def _convert_to_statespace(sys, use_prefix_suffix=False):
A, B, C, D = \
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change for the two lines above:

if not issiso(sys):    raise ControlMIMONotImplemented("MIMO system conversion not supported without Slycot")

@@ -2250,6 +2274,8 @@ def _convert_to_statespace(sys, use_prefix_suffix=False):
A, B, C, D = \
sp.signal.tf2ss(squeeze(sys.num), squeeze(sys.den))
newsys = StateSpace(A, B, C, D, sys.dt)
else:
raise ValueError(f"unknown {method=}")
Copy link
Contributor

Choose a reason for hiding this comment

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

First instantiation of self-documenting F-strings in python-control? : )

@murrayrmmurrayrm merged commit2ddc9ea intopython-control:mainNov 8, 2023
@murrayrmmurrayrm deleted the tf2ss_unstable_bug-21Oct2023 branchNovember 8, 2023 06:39
@murrayrmmurrayrm added this to the0.10.0 milestoneMar 31, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@sawyerbfullersawyerbfullersawyerbfuller approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
0.10.0
Development

Successfully merging this pull request may close these issues.

3 participants
@murrayrm@coveralls@sawyerbfuller

[8]ページ先頭

©2009-2025 Movatter.jp