datasim.Dataset¶
- class datasim.Dataset(world, id: str, *args: DataSource)¶
Base class for saving data and updating data for plots to be made on a dashboard.
- __init__(world, id: str, *args: DataSource)¶
Create a dataset to add to the output using World.add_data().
- Parameters:
id (str) – identifier, needs to be unique.
*args (
DataSource
) – Source to start the dataset with.
Methods
__init__
(world, id, *args)Create a dataset to add to the output using World.add_data().
add_source
(source)Add a data source to the set.
remove_source
(source)Remove a data source from the set.
Attributes
world
id
title
sources
output