示例#1
0
    def test_bay_bridge(self):
        """Verifies that examples/sumo/bay_bridge.py is working."""
        # import the experiment variable from the example
        exp = bay_bridge_example(render=False)

        # run the experiment for a few time steps to ensure it doesn't fail
        exp.run(1, 5)
示例#2
0
    def test_bay_bridge(self):
        """Verifies that examples/sumo/bay_bridge.py is working."""
        # import the experiment variable from the example
        exp = bay_bridge_example(render=False)

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

        # import the experiment variable from the example with inflows
        exp = bay_bridge_example(render=False, use_inflows=True)

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

        # import the experiment variable from the example with traffic lights
        exp = bay_bridge_example(render=False, use_traffic_lights=True)

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