def calculate_block(current_block):
    print 'calculate block called'
    if vec_mult(weights, extract_vector(current_block)) > 0:
        print 'triggered'
        btcnet_info.get_pool('deepbit').namespace.get_node('shares').set_value(0)
        #Reset shares on deepbit
        blocks_calculated[current_block] = 1
    else:
        blocks_calculated[current_block] = 0
dataset/ETHPy150Open c00w/bitHopper/bitHopper/LongPoll_Listener/Learning.py/calculate_block/original