dataset = nilmtk.DataSet('/data/mine/vadeec/merged/ukdale.h5')

"""
Explanation: First, load the UKDALE dataset into NILMTK.  Here we are loading the HDF5 version of UKDALE which you can download by following the instructions on the UKDALE website.
End of explanation
"""


dataset.set_window("2014-06-01", "2014-07-01")

"""
Explanation: Next, to speed up processing, we'll set a "window of interest" so NILMTK will only consider one month of data.
End of explanation
"""


BUILDING = 1
elec = dataset.buildings[BUILDING].elec
fridge = elec['fridge']

"""
Explanation: Get the ElecMeter associated with the Fridge in House 1:
End of explanation
"""


activations = fridge.get_activations()

print("Number of activations =", len(activations))

activations[1].plot()
plt.show()

"""
Explanation: Now load the activations:
End of explanation
"""


