Skip to content

Commit 82ac4d2

Browse files
committed
seems like a first working frd implementation
1 parent adb4f8f commit 82ac4d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/frdata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def __init__(self, *args):
172172
self.ifunc[i,j],u = splprep(
173173
u=self.omega, x=[real(self.fresp[i, j, :]),
174174
imag(self.fresp[i, j, :])],
175-
w=1.0/(absolute(self.fresp[i, j, :])+0.001), s=0.01)
175+
w=1.0/(absolute(self.fresp[i, j, :])+0.001), s=0.0)
176176

177177
Lti.__init__(self, self.fresp.shape[1], self.fresp.shape[0])
178178

tests/frd_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def testAuto(self):
100100

101101
def testBode(self):
102102
h1 = TransferFunction([1], [1, 2, 2])
103-
omega = np.logspace(-1, 2, 30)
103+
omega = np.logspace(-1, 2, 40)
104104
f1 = FRD(h1, omega)
105105
control.freqplot.nyquist(f1, np.logspace(-1, 2, 100))
106106
plt.figure(2)

0 commit comments

Comments
 (0)