Function read_agents_file

Source
fn read_agents_file(
    model_dir: &Path,
    region_ids: &HashSet<RegionID>,
) -> Result<AgentMap>
Expand description

Read agents info from the agents.csv file.

§Arguments

  • model_dir - Folder containing model configuration files
  • commodities - Commodities for the model
  • process_ids - The possible valid process IDs

§Returns

A map of Agents, with the agent ID as the key