Skip to content

Add type error checks, unit tests, documentation for real-valued systems #1142

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 2 commits into from
Mar 25, 2025

Conversation

murrayrm
Copy link
Member

This PR addresses #1141 which suggested putting in checks for unsupported coefficient types in transfer functions (specifically complex numbers). This PR does that, including some small additions to the documentation and unit tests.

Note that attempting to pass a complex coefficient for a state space system was already caught as an error.

@murrayrm murrayrm linked an issue Mar 24, 2025 that may be closed by this pull request
@coveralls
Copy link

Coverage Status

coverage: 94.747% (+0.002%) from 94.745%
when pulling 6b4501e on murrayrm:xferfcn_typecheck-23Mar2025
into 394e1c2 on python-control:main.

Copy link
Contributor

@bnavigator bnavigator left a comment

Choose a reason for hiding this comment

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

LGTM

@bnavigator bnavigator merged commit dc7d71b into python-control:main Mar 25, 2025
24 checks passed
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.

Casting complex number to float
3 participants