Skip to content

Conversation

murrayrm
Copy link
Member

This PR addresses issue #1014, where a constant input was generating an error in step_info. Just needed to account for the case where np.where returned an empty array.

Also changed np.where to np.nonzero, as recommended in the np.where documentation.

@coveralls
Copy link

Coverage Status

coverage: 94.629% (+0.001%) from 94.628%
when pulling 813c937 on murrayrm:step_info_fix-12Jul2024
into 6406868 on python-control:main.

@slivingston slivingston merged commit bb82883 into python-control:main Jul 13, 2024
@murrayrm murrayrm added this to the 0.10.1 milestone Aug 8, 2024
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