diff --git a/examples/examples.py b/examples/examples.py index d9f5754ef..321b3fd8c 100644 --- a/examples/examples.py +++ b/examples/examples.py @@ -101,11 +101,16 @@ - local_db: without database and grafana - timescale: with database and grafana (note: you need docker installed) """ + + # select to store the simulation results in a local database or in timescale + # when using timescale, you need to have docker installed and can access the grafana dashboard data_format = "local_db" # "local_db" or "timescale" + + # select the example to run from the available examples above example = "small" if data_format == "local_db": - db_uri = f"sqlite:///./examples/local_db/assume_db_{example}.db" + db_uri = "sqlite:///./examples/local_db/assume_db.db" elif data_format == "timescale": db_uri = "postgresql://assume:assume@localhost:5432/assume"