Skip to content

Fix step_info settling time calculation #1029

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 1 commit into from
Jul 13, 2024

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
23 checks passed
@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