Skip to content

Commit 6213a54

Browse files
committed
fixed a few bugs that slipped through
1 parent 2c4ac62 commit 6213a54

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

control/matlab/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@
224224
\* :func:`~control.nichols` Nichols plot
225225
\* :func:`margin` gain and phase margins
226226
\ lti/allmargin all crossover frequencies and margins
227-
\* :func:`freqresp` frequency response over a frequency grid
228-
\* :func:`evalfr` frequency response at single frequency
227+
\* :func:`freqresp` frequency response
228+
\* :func:`evalfr` frequency response at complex frequency s
229229
== ========================== ============================================
230230
231231

control/statesp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ def horner(self, s):
527527
# Preallocate
528528
out = empty((self.outputs, self.inputs, len(s_arr)), dtype=complex)
529529

530+
#TODO: can this be vectorized?
530531
for idx, s_idx in enumerate(s_arr):
531532
out[:,:,idx] = \
532533
np.dot(self.C,

control/tests/iosys_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,8 +860,8 @@ def test_lineariosys_statespace(self):
860860
np.testing.assert_array_equal(
861861
iosys_siso.pole(), self.siso_linsys.pole())
862862
omega = np.logspace(.1, 10, 100)
863-
mag_io, phase_io, omega_io = iosys_siso.freqresp(omega)
864-
mag_ss, phase_ss, omega_ss = self.siso_linsys.freqresp(omega)
863+
mag_io, phase_io, omega_io = iosys_siso.frequency_response(omega)
864+
mag_ss, phase_ss, omega_ss = self.siso_linsys.frequency_response(omega)
865865
np.testing.assert_array_equal(mag_io, mag_ss)
866866
np.testing.assert_array_equal(phase_io, phase_ss)
867867
np.testing.assert_array_equal(omega_io, omega_ss)

0 commit comments

Comments
 (0)