pub fn read_process_availabilities(
model_dir: &Path,
process_ids: &IndexSet<ProcessID>,
processes: &HashMap<ProcessID, Process>,
time_slice_info: &TimeSliceInfo,
milestone_years: &[u32],
) -> Result<HashMap<ProcessID, ProcessEnergyLimitsMap>>
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 filesprocess_ids
- The possible valid process IDstime_slice_info
- Information about seasons and times of day
§Returns
A HashMap
with process IDs as the keys and ProcessEnergyLimitsMap
s as the values or an
error.