edisgo.network.dsm.DSM
- class edisgo.network.dsm.DSM(**kwargs)
Data container for demand side management potential data.
- property p_min
Maximum load decrease in MW.
- Parameters:
df (pandas.DataFrame) – Maximum load decrease in MW. Index of the dataframe is a time index and column names are names of DSM loads as in
loads_df.- Returns:
Maximum load decrease in MW. For more information on the dataframe see input parameter df.
- Return type:
- property p_max
Maximum load increase in MW.
- Parameters:
df (pandas.DataFrame) – Maximum load increase in MW. Index of the dataframe is a time index and column names are names of DSM loads as in
loads_df.- Returns:
Maximum load decrease in MW. For more information on the dataframe see input parameter df.
- Return type:
- property e_min
Maximum energy preponing in MWh.
- Parameters:
df (pandas.DataFrame) – Maximum energy preponing in MWh. Index of the dataframe is a time index and column names are names of DSM loads as in
loads_df.- Returns:
Maximum energy preponing in MWh. For more information on the dataframe see input parameter df.
- Return type:
- property e_max
Maximum energy postponing in MWh.
- Parameters:
df (pandas.DataFrame) – Maximum energy postponing in MWh. Index of the dataframe is a time index and column names are names of DSM loads as in
loads_df.- Returns:
Maximum energy postponing in MWh. For more information on the dataframe see input parameter df.
- Return type:
- reduce_memory(attr_to_reduce=None, to_type='float32')
Reduces size of dataframes to save memory.
See
reduce_memoryfor more information.- Parameters:
attr_to_reduce (list(str), optional) – List of attributes to reduce size for. Per default, all active and reactive power time series of generators, loads, and storage units are reduced.
to_type (str, optional) – Data type to convert time series data to. This is a tradeoff between precision and memory. Default: “float32”.
- to_csv(directory, reduce_memory=False, **kwargs)
Exports DSM data to csv files.
The following attributes are exported:
‘p_min’ : Attribute
p_minis saved to p_min.csv.‘p_max’ : Attribute
p_maxis saved to p_max.csv.‘e_min’ : Attribute
e_minis saved to e_min.csv.‘e_max’ : Attribute
e_maxis saved to e_max.csv.
- Parameters:
directory (str) – Path to save DSM data to.
reduce_memory (bool, optional) – If True, size of dataframes is reduced using
reduce_memory. Optional parameters ofreduce_memorycan be passed as kwargs to this function. Default: False.kwargs – Kwargs may contain arguments of
reduce_memory.
- from_csv(data_path, from_zip_archive=False)
Restores DSM data from csv files.
- check_integrity()
Check data integrity.
Checks for duplicated and missing labels as well as implausible values.