|
10 | 10 | import control as ct |
11 | 11 | from control import StateSpace, TransferFunction, rss, evalfr |
12 | 12 | from control import ss, ss2tf, tf, tf2ss, zpk |
13 | | -from control import isctime, isdtime, sample_system, defaults, reset_defaults |
| 13 | +from control import isctime, isdtime, sample_system |
| 14 | +from control import defaults, reset_defaults, set_defaults |
14 | 15 | from control.statesp import _convert_to_statespace |
15 | 16 | from control.xferfcn import _convert_to_transfer_function |
16 | 17 | from control.tests.conftest import slycotonly, matrixfilter |
@@ -990,8 +991,9 @@ def test_printing_zpk(self, zeros, poles, gain, output): |
990 | 991 | ]) |
991 | 992 | def test_printing_zpk_format(self, zeros, poles, gain, format, output): |
992 | 993 | """Test _tf_polynomial_to_string for constant systems""" |
993 | | - defaults['xferfcn.floating_point_format'] = format |
994 | 994 | G = tf([1], [1,2,3], display_format='zpk') |
| 995 | + |
| 996 | + set_defaults('xferfcn', floating_point_format=format) |
995 | 997 | res = str(G) |
996 | 998 | reset_defaults() |
997 | 999 |
|
|
0 commit comments