muse2::input::region

Function read_regions

Source
pub fn read_regions(model_dir: &Path) -> Result<HashMap<Rc<str>, Region>>
Expand description

Reads regions from a CSV file.

§Arguments

  • model_dir - Folder containing model configuration files

§Returns

A HashMap<Rc<str>, Region> with the parsed regions data or an error. The keys are region IDs.