pub fn read_demand_slices(
model_dir: &Path,
svd_commodities: &HashMap<CommodityID, &'_ Commodity>,
region_ids: &IndexSet<RegionID>,
time_slice_info: &TimeSliceInfo,
) -> Result<HashMap<(CommodityID, RegionID, TimeSliceSelection), Dimensionless>>Expand description
Read demand slices from the specified model directory.
§Arguments
model_dir- Folder containing model configuration filessvd_commodities- Map of service-demand commoditiesregion_ids- Known region identifierstime_slice_info- Time slice configuration (seasons and times of day)
§Returns
A DemandSliceMap mapping (CommodityID, RegionID, TimeSliceSelection) to the fraction
of annual demand for that commodity/region/time-slice selection.