Skip to content

Commit

Permalink
Merge pull request #190 from rl-institut/feature/#188_2_move_gc_output
Browse files Browse the repository at this point in the history
move station specific output to gcs folder
  • Loading branch information
j-brendel authored Jun 6, 2024
2 parents 9e49f70 + 669ed19 commit 4a9e3e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions simba/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,11 @@ def generate(schedule, scenario, args):
# generate simulation_timeseries.csv, simulation.json and vehicle_socs.csv in SpiceEV
# re-route output paths
args.save_soc = args.results_directory / "vehicle_socs.csv"
args.save_results = args.results_directory / "info.json"
args.save_timeseries = args.results_directory / "ts.csv"
# bundle station-specific output files in subdirectory
gc_dir = args.results_directory / "gcs"
gc_dir.mkdir(exist_ok=True)
args.save_results = gc_dir / "info.json"
args.save_timeseries = gc_dir / "ts.csv"
generate_reports(scenario, vars(args).copy())
args.save_timeseries = None
args.save_results = None
Expand Down

0 comments on commit 4a9e3e2

Please sign in to comment.