You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi All I am trying is to run the example mimo plotting in docs (0.9.4) , my version of the control pkg is 0.9.4, I could not plot the example code as below
File "C:\Users\user\OneDrive\Documents\2_dof_control_systems python\src\trial.py", line 21, in <module> ct.bode_plot(response, initial_phase=0) File "C:\Users\user\miniforge3\envs\control_env\Lib\site-packages\control\freqplot.py", line 214, in bode_plot omega, omega_range_given = _determine_omega_vector( ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\miniforge3\envs\control_env\Lib\site-packages\control\freqplot.py", line 1593, in _determine_omega_vector omega_out = _default_frequency_range( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\miniforge3\envs\control_env\Lib\site-packages\control\freqplot.py", line 1666, in _default_frequency_range if sys.isctime(): ^^^^^^^^^^^ AttributeError: 'TimeResponseData' object has no attribute 'isctime'
some times, it complains omega is required from frequency_response, but in "frequency_response" method omega is optional , I don't where is the problem
The text was updated successfully, but these errors were encountered:
The documentation you are looking at is for the latest, which is the main development branch. That version of python-control has significant changes to the various plotting routes (see Version 0.10 changes (tracking issue) #917 and the PR's linked there). For version 0.9.4, you want to use https://python-control.readthedocs.io/en/0.9.4 (the specific section you address is not there).
For version 0.9.4 of python-control, the frequency_response function requires omega; see 0.9.4 documentation.
Ways to fix the problem:
If you want to stick with version 0.9.4, you can generate a bode plot using bode_plot([sys1, sys2]).
If you want to use the update _response/_plot pattern, checkout the main branch on GitHub.
Hi All I am trying is to run the example mimo plotting in docs (0.9.4) , my version of the control pkg is 0.9.4, I could not plot the example code as below
but getting error
File "C:\Users\user\OneDrive\Documents\2_dof_control_systems python\src\trial.py", line 21, in <module> ct.bode_plot(response, initial_phase=0) File "C:\Users\user\miniforge3\envs\control_env\Lib\site-packages\control\freqplot.py", line 214, in bode_plot omega, omega_range_given = _determine_omega_vector( ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\miniforge3\envs\control_env\Lib\site-packages\control\freqplot.py", line 1593, in _determine_omega_vector omega_out = _default_frequency_range( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\miniforge3\envs\control_env\Lib\site-packages\control\freqplot.py", line 1666, in _default_frequency_range if sys.isctime(): ^^^^^^^^^^^ AttributeError: 'TimeResponseData' object has no attribute 'isctime'
I could not plot any example as mention in docs below
https://python-control.readthedocs.io/en/latest/plotting.html#response-functions
some times, it complains omega is required from frequency_response, but in "frequency_response" method omega is optional , I don't where is the problem
The text was updated successfully, but these errors were encountered: