Skip to content

Commit a26520d

Browse files
committed
statesp_test: remove duplicate test_pole_static and test_copy_constructor
1 parent 7acfc77 commit a26520d

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

control/tests/statesp_test.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -922,28 +922,3 @@ def test_latex_repr(gmats, ref, repr_type, num_format, editsdefaults):
922922
g = StateSpace(*gmats)
923923
refkey = "{}_{}".format(refkey_n[num_format], refkey_r[repr_type])
924924
assert g._repr_latex_() == ref[refkey]
925-
926-
def test_pole_static(self):
927-
"""Regression: pole() of static gain is empty array."""
928-
np.testing.assert_array_equal(np.array([]),
929-
StateSpace([], [], [], [[1]]).pole())
930-
931-
def test_copy_constructor(self):
932-
# Create a set of matrices for a simple linear system
933-
A = np.array([[-1]])
934-
B = np.array([[1]])
935-
C = np.array([[1]])
936-
D = np.array([[0]])
937-
938-
# Create the first linear system and a copy
939-
linsys = StateSpace(A, B, C, D)
940-
cpysys = StateSpace(linsys)
941-
942-
# Change the original A matrix
943-
A[0, 0] = -2
944-
np.testing.assert_array_equal(linsys.A, [[-1]]) # original value
945-
np.testing.assert_array_equal(cpysys.A, [[-1]]) # original value
946-
947-
# Change the A matrix for the original system
948-
linsys.A[0, 0] = -3
949-
np.testing.assert_array_equal(cpysys.A, [[-1]]) # original value

0 commit comments

Comments
 (0)