Module output

Source
Expand description

The module responsible for writing output data to disk.

Structsยง

AssetRow ๐Ÿ”’
Represents a row in the assets output CSV file
CommodityFlowRow ๐Ÿ”’
Represents the flow-related data in a row of the commodity flows CSV file.
CommodityPriceRow ๐Ÿ”’
Represents a row in the commodity prices CSV file
DataWriter
An object for writing commodity prices to file

Constantsยง

ASSETS_FILE_NAME ๐Ÿ”’
The output file name for assets
COMMODITY_FLOWS_FILE_NAME ๐Ÿ”’
The output file name for commodity flows
COMMODITY_PRICES_FILE_NAME ๐Ÿ”’
The output file name for commodity prices
OUTPUT_DIRECTORY_ROOT ๐Ÿ”’
The root folder in which model-specific output folders will be created

Functionsยง

create_output_directory
Create a new output directory for the model specified at model_dir.
get_output_dir
Get the model name from the specified directory path