datasim.Runner¶
- class datasim.Runner(world_class_object, headless: bool = False, auto_output_path: str | None = None, clear_auto_output_path: bool = False, auto_output_csv: bool = False, split_worlds: bool = False)¶
Main simulation runner for DataSim.
This class creates the World objects for any batches of runs defined in the definition yaml of the target class.
- __init__(world_class_object, headless: bool = False, auto_output_path: str | None = None, clear_auto_output_path: bool = False, auto_output_csv: bool = False, split_worlds: bool = False)¶
Create a simulation Runner.
- Parameters:
world_class_object (type or object) – Type, class or object by which the world’s type is determined
headless (bool, optional) – Run without dashboard. Defaults to False.
- Raises:
ValueError – If the definition file contains an invalid grid definition.
Methods
__init__(world_class_object[, headless, ...])Create a simulation Runner.
simulate([tpu, end_tick, restart, realtime, ...])Run the simulation for all worlds.
stop()Stop the simulation and wait for it to end.
wait()Wait for the simulation of all worlds to end.
Attributes
activeCheck if the simulation is still actively running.
complete_logdateend_tickrealtimerestartstop_servertpuoutputsingle_worldworldstitleheadlessdata_sourceruns_per_batchstartedupdate_timecontrol_threadauto_output_pathclear_auto_output_pathauto_output_csvsplit_worlds