Creating Input Data Templates
After you have defined your system topology, you can now create the folder structure
and the templates for the optimization based on the specified topology. For this,
you call the create_input_data_folder_template() method, passing your input
data folder path (which must be the same folder path as for the
Model Templates). This creates a folder
structure in the specified path with respective empty input data files.
adopt.create_input_data_folder_template(input_data_path)
Note: See a complete documentation of all template creation functions in the source code documentation.
Your directory should now contain the following files:
Topology.JSONConfigModel.JSONNodeLocations.csvA folder for each investment period that you specified in the topology, containing:
Networks.JSONA folder called
network_dataA folder called
network_topology, which itself contains:A folder called
existing: containing the data templates for all existing network types.Note that for each of the networks that you specify as existing in
Networks.JSON, an additional folder called after the network name has to be created containing the data templates for the existing networks.
A folder called
new: containing the data templates for all new network types.Note that for each of the networks that you specify as new in
Networks.JSON, an additional folder called after the network name has to be created containing the data templates for the new networks.
A folder called
node_data, containing:A folder for each node that you specified in the topology, containing:
Technologies.JSONCarbonCost.csvClimateData.csvA folder called
carrier_data, containing:A
carrier_name.csvfile for each carrier.EnergybalanceOptions.JSON
A folder called
technology_data
- create_input_data_folder_template(base_path: pathlib.Path | str)
Creates a folder structure based on the topology contained in the folder
This function creates the input data folder structure required to organize the input data to the model. Note that the folder needs to already exist with a Topology.json file in it that specifies the nodes, carriers, timesteps, investment periods and the length of the investment period.
You can create an examplary json template with the function func:create_topology_template
- Parameters:
base_path (str, Path) – path to folder