citylearn.exporter module
- class citylearn.exporter.EpisodeExporter(env: CityLearnEnv)[source]
Bases:
objectInternal helper that owns rendering/export behaviour for
CityLearnEnv.- DEFAULT_RENDER_START_DATE = datetime.date(2024, 1, 1)
- ensure_output_dir(*, ensure_exists: bool = True)[source]
Prepare the render output directory and optionally create it on disk.
- export_business_as_usual_timeseries(source_env: CityLearnEnv = None)[source]
Export a compact time-series audit for the business-as-usual baseline.
- export_episode_render_data(final_index: int)[source]
Export full episode render rows in one pass for
render_mode='end'.
- export_final_kpis(model: Agent = None, filepath: str = 'exported_kpis.csv', include_business_as_usual: bool = True, export_business_as_usual_timeseries: bool = True, kpi_round_decimals: int | None = None)[source]
Export episode KPIs to csv.
- override_render_time_step(index: int)[source]
Temporarily set time_step to index for the environment and descendants.
- static parse_render_start_date(start_date: str | date | datetime) date[source]
Return a valid start date for rendering timestamps.