

def __init__(self, max_num_cables, name):
    ' Initialize the daisychain, preallocating all data structures '
    self.max_num_cables = max_num_cables
    self.name = name
    self.AGING_TIME_CONSTANT = (10 ** 6)
    self.CHAIN_UPDATE_RATE = (10 ** (- 1))
    self.time_steps = 0
    daisychain_shape = (max_num_cables, max_num_cables)
    self.count = np.zeros(daisychain_shape)
    self.expected_cable_activities = np.zeros(daisychain_shape)
    self.post_uncertainty = np.zeros(daisychain_shape)
    state_shape = (max_num_cables, 1)
    self.cable_activities = np.zeros(state_shape)
    self.pre = np.zeros(state_shape)
    self.pre_count = np.zeros(state_shape)
    self.post = np.zeros(state_shape)
    self.num_cables = 0
    self.surprise = np.ones((max_num_cables, 1))

dataset/ETHPy150Open matt2000/becca/core/daisychain.py DaisyChain.__init__/original