10BC0
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70bf207 commit 53e0a09Copy full SHA for 53e0a09
control/tests/freqresp_test.py
@@ -141,6 +141,11 @@ def test_discrete(self):
141
import warnings
142
warnings.simplefilter('always', UserWarning) # don't supress
143
with warnings.catch_warnings(record=True) as w:
144
+ # Set up warnings filter to only show warnings in control module
145
+ warnings.filterwarnings("ignore")
146
+ warnings.filterwarnings("always", module="control")
147
+
148
+ # Look for a warning about sampling above Nyquist frequency
149
omega_bad = np.linspace(10e-4,1.1,10) * np.pi/sys.dt
150
ret = sys.freqresp(omega_bad)
151
print("len(w) =", len(w))
0 commit comments