Module output

Source
Expand description

The module responsible for writing output data to disk.

Modulesยง

metadata
Code for writing metadata to file

Structsยง

ActivityDualsRow ๐Ÿ”’
Represents the activity duals data in a row of the activity duals CSV file
AssetRow ๐Ÿ”’
Represents a row in the assets output CSV file.
CommodityBalanceDualsRow ๐Ÿ”’
Represents the commodity balance duals data in a row of the commodity balance duals 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
DebugDataWriter ๐Ÿ”’
For writing extra debug information about the model

Constantsยง

ACTIVITY_DUALS_FILE_NAME ๐Ÿ”’
The output file name for activity duals
ASSETS_FILE_NAME ๐Ÿ”’
The output file name for assets
COMMODITY_BALANCE_DUALS_FILE_NAME ๐Ÿ”’
The output file name for commodity balance duals
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