API Reference¶
Use Case class¶
|
Creates a UseCase instance for gathering a list of User instances which own Appliance instances |
|
adds new user to the user property list |
|
Saves/returns the model databas including all the users and their appliances as a single pd.DataFrame or excel file. |
exports the model database to a pd.DataFrame containing all the data related to users and their appliances |
|
|
Open an .xlsx file which was produced via the save method and create instances of Users and Appliances |
Gather all appliances from a UseCase instance users into self.appliances attribute |
|
|
Sets the list of days for which to generate profiles and compute peak time range |
|
Calculate the peak time range, which is used to discriminate between off-peak and on-peak coincident switch-on probability Calculate first the overall Peak Window (taking into account all User classes). |
|
Iterate over the days and generate a daily profile for each of the days |
Generate a daily profile for each of the days in a parallel process |
|
Start date of the daily profiles generated by the UseCase instance |
|
End date of the daily profiles generated by the UseCase instance |
|
Number of days for which the UseCase instance will be able to generate profiles |
|
Return the datetimeindex of the UseCase and call UseCase.initialize() if it was not set |
User class¶
|
Creates a User instance (User Category) |
|
adds an appliance to the user category with all the appliance characteristics in a single function |
|
Saves/returns the model databas including allappliances as a single pd.DataFrame or excel file. |
Saves/returns the model databas including allappliances as a single pd.DataFrame or excel file. |
|
|
Back-compatibility with legacy code |
|
Generates a load profile for a single user taking all its appliances into consideration |
Generates an aggregated load profile from single load profile of each user |
|
Aggregate the theoretical maximal profiles of each appliance of the user by switching the appliance always on |
Appliance class¶
|
Creates an appliance for a given user |
returns a pd.DataFrame containing the appliance data |
|
returns a pd.DataFrame containing the appliance data |
|
|
assings functioning windows to the appliance and adds the appliance to the user class |
|
assigining specific duty cycle for the appliance (maximum of three cycles can be assigned) |
|
assigining the frist specific duty cycle for the appliace (maximum of three cycles can be assigned) |
|
assigining the frist specific duty cycle for the appliace (maximum of three cycles can be assigned) |
|
assigining the frist specific duty cycle for the appliace (maximum of three cycles can be assigned) |
|
_summary_ |
Virtual maximum load profile of the appliance |
|
|
checks the equality of two appliances |
Utilities¶
|
|
|
Copies the model files from the ramp package to a given path :param destination: The path to copy the model files. |
Visualization¶
|
initializes a Plot object using a pd.DataFrame |
|
initializing a Plot object from a file results |
return the frequency of the pd.DatetimeIndex |
|
returns a list of columns (cases) of the Plot dataframe |
|
|
returns a resampled version of the data |
|
creating a like plot |
|
creating a shadow plot |
|
an area plot |
|
plots the load duration curve |
|
returns the error |
a dict with all peak hours for each column of the pd.DataFrame |
|
returns the data of the Plot object |
|
|
adds new column to the data |
|
loc method to filter the data |
|
returns the top var numbers of data |
|
returns a pd.DataFrame.plot object |
|
saves the data into excel |
|
saves the data into csv |
returns the mean of the columns |
|
|
returns the sum of the columns |