Downloads data from dataport database into an HDF5 file.
Parameters:
hdf_filename : str
Output HDF filename. If file exists already then will be deleted.
database_username, database_password : str
periods_to_load : dict of tuples, optional
Key of dict is the building number (int).
Values are (<start date>, <end date>)
e.g. (“2013-04-01”, None) or (“2013-04-01”, “2013-08-01”)
defaults to all buildings and all date ranges