class Weights():
"""
Used to calculate the weights and weighted durations of the tasks
"""
def __init__(self, weight, numtasks, prevtime, currenttime, starttime):
# time difference between button presses
self.deltat = currenttime - prevtime
# duration of time that button has been on
self.duration = currenttime - starttime
# sum of the weights that have been calculated. If this is the first 'event' then weight will be orginally 0 and new weight