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)
# -*- 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)