Skip to content

statefbk.acker doesn't use _ssmatrix-converted value of inputs #1100

Description

@roryyorke

From gh-1099 ; probably needs a similar treatment to ctrb there.

pyflakes says:

control/statefbk.py:278:5: local variable 'b' is assigned to but never used

code with docstring removed:

def acker(A, B, poles):
    # Convert the inputs to matrices
    a = _ssmatrix(A)
    b = _ssmatrix(B)

    # Make sure the system is controllable
    ct = ctrb(A, B)

Activity

  1. murrayrm commented on Feb 1, 2025

    @murrayrm
    Member

    FYI, I'm working on a PR that updates use of _ssmatrix (which dates back to NumPy matrix days) and will address this issue.

  2. self-assigned this
    on Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions