8000 Add type error checks, unit tests, documentation for real-valued systems by murrayrm · Pull Request #1142 · python-control/python-control · GitHub
[go: up one dir, main page]

Skip to content

Conversation

murrayrm
Copy link
Member
8000

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
@murrayrm murrayrm added this to the 0.10.2 milestone Jul 4, 2025
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
0