Skip to content

Commit 1d9fc80

Browse files
committed
update descfcn module for compatibility
1 parent b859aec commit 1d9fc80

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

control/descfcn.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,9 @@ def describing_function_plot(
241241
242242
"""
243243
# Start by drawing a Nyquist curve
244-
H_real, H_imag, H_omega = nyquist_plot(H, omega, plot=True, **kwargs)
245-
H_vals = H_real + 1j * H_imag
244+
count, contour = nyquist_plot(
245+
H, omega, plot=True, return_contour=True, **kwargs)
246+
H_omega, H_vals = contour.imag, H(contour)
246247

247248
# Compute the describing function
248249
df = describing_function(F, A)

examples/describing_functions.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@
369369
"amp = np.linspace(0.6, 5, 50)\n",
370370
"\n",
371371
"# Describing function plot\n",
372-
"ct.describing_function_plot(H_multiple, F_backlash, amp, omega, mirror=False)"
372+
"ct.describing_function_plot(H_multiple, F_backlash, amp, omega, mirror_style=False)"
373373
]
374374
},
375375
{

0 commit comments

Comments
 (0)