tsnkit.simulation package

Submodules

tsnkit.simulation.tas module

class tsnkit.simulation.tas.ConfigTypes(value)[source]

Bases: Enum

GCL = 0
OFFSET = 2
QUEUE = 3
ROUTE = 1
tsnkit.simulation.tas.match_config_type(configs: List[DataFrame], config_type: ConfigTypes) DataFrame[source]
tsnkit.simulation.tas.match_time(t: int, gcl: List[Tuple[int, int, int]]) int[source]

Match the entry in GCl with the given time. Implemented by binary search.

Args:

t (int): _description_ gcl (List[Tuple[int, int, int]]): _description_

Returns:

int: _description_

tsnkit.simulation.tas.simulation(task_path: str = './', config_path_affix: str = './', it: int = 10, verbose: bool = False, draw_results: bool = True, disable_pbar: bool = False) List[List[List[int]]][source]

Module contents

Author: Chuanyu (skewcy@gmail.com) __init__.py (c) 2023 Desc: description Created: 2023-10-08T01:54:17.929Z