This addresses the generation of the loads.csv file as described in #55.
What the code is doing
Per-zone bus demand is translated to per bus demand following the method in PowerSimData, and then grouped by timepoint, then the mean is taken, and the table is melted to the format expected by Switch.
Testing
Manual testing with the mapping file provided by @YifanLi86 provided output consistent with the example loads.csv file. None is used for the inputs to the still-unused timepoints and timeseries_to_duration parameters of the profiles_to_switch function.
Pull Request doc
Purpose
This addresses the generation of the loads.csv file as described in #55.
What the code is doing
Per-zone bus demand is translated to per bus demand following the method in PowerSimData, and then grouped by timepoint, then the mean is taken, and the table is melted to the format expected by Switch.
Testing
Manual testing with the mapping file provided by @YifanLi86 provided output consistent with the example loads.csv file.
None
is used for the inputs to the still-unusedtimepoints
andtimeseries_to_duration
parameters of theprofiles_to_switch
function.Time estimate
15 minutes.