예제 #1
0
def test_nesc():
    data = np.load("../examples/data/eeg_32chans_10secs.npy")
    nescv = nesc(data, [4.0, 7.0], [20.0, 45.0], 128)

    expected = np.load("data/test_nesc.npy")
    np.testing.assert_array_equal(nescv, expected)
예제 #2
0
# -*- coding: utf-8 -*-
# Author: Avraam Marimpis <*****@*****.**>

import numpy as np
np.set_printoptions(precision=2, linewidth=256)

from dyconnmap.fc import nesc

if __name__ == "__main__":
    data = np.load(
        "/home/makism/Github/dyconnmap/examples/data/eeg_32chans_10secs.npy")
    data = data[0:5, ]

    nescv = nesc(data, [4.0, 7.0], [20.0, 45.0], 128)

    print(nescv)