Skip to content

Fix bandwidth function for DT systems#1212

Open
aWZHY0yQH81uOYvH wants to merge 1 commit intopython-control:mainfrom
aWZHY0yQH81uOYvH:fix-dt-bandwidth
Open

Fix bandwidth function for DT systems#1212
aWZHY0yQH81uOYvH wants to merge 1 commit intopython-control:mainfrom
aWZHY0yQH81uOYvH:fix-dt-bandwidth

Conversation

@aWZHY0yQH81uOYvH
Copy link

Frequency needs to be evaluated differently for discrete-time systems.

@coveralls
Copy link

Coverage Status

coverage: 94.726% (-0.008%) from 94.734%
when pulling a709dd6 on aWZHY0yQH81uOYvH:fix-dt-bandwidth
into 854f5f7 on python-control:main.

@sawyerbfuller
Copy link
Contributor

Thanks for the submission. Looks like this was a bug, and your submission appears to correctly avoid problems that could arise in the optimization routine because the frequency response of discrete-time systems is periodic.

Can you add a unit test? I think that all that would be needed would be a confirmation of correct behavior on a first-order system.

@sawyerbfuller
Copy link
Contributor

I think the failing unit tests are unrelated. Sometimes they go away on a re-run

@aWZHY0yQH81uOYvH
Copy link
Author

Ok, unit test added.

@sawyerbfuller
Copy link
Contributor

Looks good to me

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.

3 participants