Function read_demand_file

Source
fn read_demand_file(
    model_dir: &Path,
    svd_commodity_ids: &HashSet<CommodityID>,
    region_ids: &HashSet<RegionID>,
    milestone_years: &[u32],
) -> Result<HashMap<(CommodityID, RegionID, u32), f64>>
Expand description

Read the demand.csv file.

§Arguments

  • model_dir - Folder containing model configuration files
  • commodity_ids - All possible IDs of commodities
  • region_ids - All possible IDs for regions
  • milestone_years - All milestone years

§Returns

Annual demand data, grouped by commodity, region and milestone year.