muse2::input::process::availability

Function read_process_availabilities

Source
pub fn read_process_availabilities(
    model_dir: &Path,
    process_ids: &HashSet<Rc<str>>,
    time_slice_info: &TimeSliceInfo,
) -> Result<HashMap<Rc<str>, ProcessCapacityMap>>
Expand description

Read the process availabilities CSV file.

This file contains information about the availability of processes over the course of a year as a proportion of their maximum capacity.

§Arguments

  • model_dir - Folder containing model configuration files
  • process_ids - The possible valid process IDs
  • time_slice_info - Information about seasons and times of day

§Returns

A HashMap with process IDs as the keys and ProcessCapacityMaps as the values or an error.