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

fix timebase processing in frd, zpk#1064

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 addresses issue#1062 by making sure that timebases are handled uniformly in all system creation factory functions:

  • Forss,tf,frd, andzpk, use either an additional argument specifying the sampling time or use thedt keyword (using both generates a warning).
  • Fornlsys, use thedt keyword
  • If no timebase is specified, use the default timebase set byconfig.defaults['control.default_dt'], which is 0 (continuous time) unless you change it.
    It was the last of these that was the problem inzpk: it was defaulting toNone and that was later interpreted as a discrete time system.

Also added unit tests to make sure everything is consistent across the different factory functions.

@murrayrmmurrayrm linked an issueNov 23, 2024 that may beclosed by this pull request
@coveralls
Copy link

Coverage Status

coverage: 94.696% (+0.004%) from 94.692%
when pulling8b29e45 on murrayrm:fix_frd_timebase-20Nov2024
intod810d5a on python-control:main.

@slivingstonslivingston self-requested a reviewNovember 23, 2024 03:56
@bnavigatorbnavigator merged commit57b5307 intopython-control:mainNov 24, 2024
23 checks passed
@murrayrmmurrayrm added this to the0.10.2 milestoneFeb 19, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@slivingstonslivingstonslivingston approved these changes

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

Successfully merging this pull request may close these issues.

Different impulse responses for zpk vs tf
4 participants
@murrayrm@coveralls@slivingston@bnavigator

[8]ページ先頭

©2009-2025 Movatter.jp