def learn_block(blocks, current_block):
    print 'learn_block called'
    #import block data
    for block in blocks:
        if block not in blocks_timing:
            blocks_timing[block] = blocks[block]
            gevent.spawn_later(60*60*1.5, set_neg, block)

    #update current_block
    if len(blocks[current_block]) < len(blocks_timing[current_block]):
        blocks_timing[current_block] = blocks[current_block]

    #determine if we should do a prediction
    if have_all_data(blocks[current_block]):
        calculate_block(current_block)
dataset/ETHPy150Open c00w/bitHopper/bitHopper/LongPoll_Listener/Learning.py/learn_block/original