Exemplo n.º 1
0
def test_visualize():
    indata = open('C:\\Dev\\blockstream_runtimes\\test_file1_res.cove',
                  'rb').read()
    bh = BS3CoveBlockHeader.from_data(indata[38:40])
    print bh.version, bh.block_type
    bk = BS3CoveDataBlock.from_data(bh, indata[40:])
    print bk.data_lst

    from spikeplot import plt

    plt.matshow(bk.data_lst[-1])
    plt.show()
Exemplo n.º 2
0
def test_visualize_block(block):
    from spikeplot import plt

    plt.matshow(block.data_lst[-2])
    plt.matshow(block.data_lst[-1])
    plt.show()