Expand description
Common routines for handling input data.
Re-exports§
pub use agent::read_agents;
pub use commodity::read_commodities;
pub use process::read_processes;
pub use region::read_regions;
Modules§
- Code for reading in agent-related data from CSV files.
- Code for reading Assets from a CSV file.
- Code for reading in commodity-related data from CSV files.
- Code for reading process-related information from CSV files.
- Code for reading region-related information from CSV files.
- Code for reading in time slice info from a CSV file.
Macros§
- Implement the
HasID
trait for the given type, assuming it has a field calledid
Traits§
- Indicates that the struct has an ID field
- A data structure containing a set of IDs
- Trait for converting an iterator into a
HashMap
grouped by IDs.
Functions§
- Check that fractions sum to (approximately) one
- Read an f64, checking that it is between 0 and 1
- Format an error message to include the file path. To be used with
anyhow::Context
. - Read a model from the specified directory.
- Read a series of type
T
s from a CSV file. - Read a CSV file of items with IDs
- Read time slices from a CSV file.
- Parse a TOML file at the specified path.