muse2::input

Function read_time_slice_info

Source
pub fn read_time_slice_info(model_dir: &Path) -> Result<TimeSliceInfo>
Expand description

Read time slices from a CSV file.

§Arguments

  • model_dir - Folder containing model configuration files

§Returns

This function returns a TimeSliceInfo struct or, if the file doesn’t exist, a single time slice covering the whole year (see TimeSliceInfo::default()).