Skip to content

Commit 7707ea8

Browse files
committed
update unit test per @slivinsgston review
1 parent 96d3228 commit 7707ea8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

control/tests/timeresp_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,6 +1278,8 @@ def test_to_pandas():
12781278
df = res.to_pandas()
12791279
np.testing.assert_equal(
12801280
df[df['trace'] == 'From u0']['time'], res.time)
1281+
np.testing.assert_equal(
1282+
df[df['trace'] == 'From u0']['u0'], res.inputs['u0', 0])
12811283
np.testing.assert_equal(
12821284
df[df['trace'] == 'From u0']['y1'], res.outputs['y1', 0])
12831285

@@ -1287,7 +1289,9 @@ def test_to_pandas():
12871289
np.testing.assert_equal(
12881290
df[df['trace'] == label]['time'], res.time)
12891291
np.testing.assert_equal(
1290-
df[df['trace'] == label]['u0'], res.inputs['u0', i])
1292+
df[df['trace'] == label]['u1'], res.inputs['u1', i])
1293+
np.testing.assert_equal(
1294+
df[df['trace'] == label]['y0'], res.outputs['y0', i])
12911295

12921296

12931297
@pytest.mark.skipif(pandas_check(), reason="pandas installed")

0 commit comments

Comments
 (0)