muse2::input::process

Function read_processes

Source
pub fn read_processes(
    model_dir: &Path,
    commodities: &HashMap<Rc<str>, Rc<Commodity>>,
    region_ids: &HashSet<Rc<str>>,
    time_slice_info: &TimeSliceInfo,
    year_range: &RangeInclusive<u32>,
) -> Result<HashMap<Rc<str>, Rc<Process>>>
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.