Data Processing
All data and settings that have been defined in your input data folder, have to be read into the model. For this,
adopt_net0.data_management.handle_input_data.DataHandle provides a class to import and manipulate data consistent with
the model.
Data Handle Class
- class DataHandle
Data Handle for loading and performing operations on input data.
The Data Handle class reads in the data previously specified in the respective input data folder. It can also perform input data manipulation for two solving algorithms:
clustering algorithm
averaging algorithm
- Parameters:
topology (dict) – Container for the topology
data_path (Path) – Container data_path
time_series (dict) – Container for all time series
energybalance_options (dict) – Container for energy balance options
technology_data (dict) – Container for technology data
network_data (dict) – Container for network data
node_locations (pd.DataFrame) – Container for node locations
model_config (dict) – Container for the model configuration
k_means_specs (dict) – Container for k-means clustering algorithm specifications
averaged_specs (dict) – Container for averaging algorithm specifications
start_period (int, None) – starting period to use, if None, the first available period is used
end_period (int, None) – end period to use, if None, the last available period is used
- read_data()
Reads all data from folder
- set_settings(data_path: Path, start_period: int = None, end_period: int = None)
Overarching function to read the data from folder structure contained in data_path
Checks the consistency of the provided folder structure and reads all required data form it, in case the input data check succeeds. In case used, it also clusters/averages the data accordingly.
The following items are read:
topology
model configuration
time series for all periods and nodes
node locations
energy balance options
technology data
network data
- Parameters:
data_path (Path) – Path to read input data from
start_period (int | None) – Starting period of model if None, the first available period is used
end_period (int | None) – End period of model if None, the last available period is used