pytsc.tests package

Submodules

pytsc.tests module

pytsc.tests module

pytsc.tests module

pytsc.tests module

pytsc.tests module

pytsc.tests module

pytsc.tests module

pytsc.tests module

pytsc.tests.test_cityflow_flow_generation module

pytsc.tests.test_cityflow_grid_disruptor module

pytsc.tests.test_cityflow_grid_generation module

pytsc.tests.test_cityflow_multi_flow_generation module

pytsc.tests.test_cityflow_oneway_flow_generation module

pytsc.tests.test_cityflow_weibull_flow_generation module

pytsc.tests.test_observations module

class pytsc.tests.test_observations.ObservationEvaluator(scenario, simulator_backend, controller, add_env_args={}, add_controller_args={}, **kwargs)[source]

Bases: pytsc.controllers.evaluate.Evaluate

run(hours, output_folder=None)[source]

Run the evaluation for a specified number of hours. :param hours: Number of hours to evaluate. :type hours: int :param save_stats: Flag to save statistics. :type save_stats: bool :param plot_stats: Flag to plot statistics. :type plot_stats: bool :param output_folder: Folder to save output files. :type output_folder: str

pytsc.tests.test_observations.plt_to_image(fig)[source]

Converts a matplotlib figure to an RGB image represented as a NumPy array.

Module contents