示例#1
0
    def test_grid(self):
        """Verifies that examples/sumo/grid.py is working."""
        # test the example in the absence of inflows
        exp = grid_example(render=False, use_inflows=False)
        exp.run(1, 5)

        # test the example in the presence of inflows
        exp = grid_example(render=False, use_inflows=True)
        exp.run(1, 5)
示例#2
0
    def test_grid(self):
        """Verifies that examples/sumo/grid.py is working."""
        # import the experiment variable from the example
        exp = grid_example(render=False)

        # run the experiment for a few time steps to ensure it doesn't fail
        exp.run(1, 5)