ramp.UseCase.load¶
- UseCase.load(filename: str) None ¶
Open an .xlsx file which was produced via the save method and create instances of Users and Appliances
- Parameters:
filename (str) – The path where the excel database is.
- Raises:
ValueError –
if the ‘num_users’ is not the same for a given user profile #. if the ‘user_preference’ is not the same for a given user profile
Note
The ‘filename’ parameter should consist the path and the name of the file with the file extension. For example, if the user wants to save database into “new_folder” directory and name the file as “ramp_database.xlsx” should use:
usecase.save("new_folder/ramp_database.xlsx")