Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit70ec8be

Browse files
committed
changed root locus test indices.
1 parent90959bd commit70ec8be

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

‎control/tests/rlocus_test.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,12 @@ def test_root_locus_zoom(self):
5858
plt.get_current_fig_manager().toolbar.mode='zoom rect'
5959
_RLClickDispatcher(event,system,fig,ax_rlocus,'-')
6060

61-
zoom_x=ax_rlocus.lines[-2].get_data()[0][65:75]
62-
zoom_y=ax_rlocus.lines[-2].get_data()[1][65:75]
61+
zoom_x=ax_rlocus.lines[-2].get_data()[0][0:5]
62+
zoom_y=ax_rlocus.lines[-2].get_data()[1][0:5]
6363
zoom_y= [abs(y)foryinzoom_y]
6464

65-
zoom_x_valid= [4.35145783,4.49519318,4.63559911 ,4.7728639 ,5.2937363 ,5.77581159,
66-
6.22564674 ,6.64818196 ,7.0472438 ,7.4258642]
67-
zoom_y_valid= [19.34886165,19.63109635,19.90593613 ,20.17384159 ,21.18390302,
68-
22.11041787,22.96863881,23.76981422 ,24.52250243,25.23338241]
65+
zoom_x_valid= [-5. ,-4.61281263,-4.16689986,-4.04122642,-3.90736502]
66+
zoom_y_valid= [0. ,0.,0.,0.,0.]
6967

7068
assert_array_almost_equal(zoom_x,zoom_x_valid)
7169
assert_array_almost_equal(zoom_y,zoom_y_valid)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp