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 filescommodities
- Commodities for the modelregion_ids
- All possible region IDstime_slice_info
- Information about seasons and times of dayyear_range
- The possible range of milestone years
§Returns
This function returns a map of processes, with the IDs as keys.