File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments