muse2::input::assetFunction read_assets
Source pub fn read_assets(
model_dir: &Path,
agent_ids: &HashSet<Rc<str>>,
processes: &HashMap<Rc<str>, Rc<Process>>,
region_ids: &HashSet<Rc<str>>,
) -> Result<Vec<Asset>>
Expand description
Read assets CSV file from model directory.
§Arguments
model_dir
- Folder containing model configuration files
agent_ids
- All possible process IDs
processes
- The model’s processes
region_ids
- All possible region IDs
§Returns
A HashMap
containing assets grouped by agent ID.