Function read_processes

Source
pub fn read_processes(
    model_dir: &Path,
    commodities: &CommodityMap,
    region_ids: &HashSet<RegionID>,
    time_slice_info: &TimeSliceInfo,
    milestone_years: &[u32],
) -> Result<ProcessMap>
Expand description

Read process information from the specified CSV files.

§Arguments

  • model_dir - Folder containing model configuration files
  • commodities - Commodities for the model
  • region_ids - All possible region IDs
  • time_slice_info - Information about seasons and times of day
  • year_range - The possible range of milestone years

§Returns

This function returns a map of processes, with the IDs as keys.