//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Set the random seed, for consistency simulating datanp.random.seed(0)//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Load neural signal// ------------------////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Load example data
sig = np.load("../data/sample_data_1.npy")
fs = 1000
times = create_times(len(sig)/fs, fs)
f_range = (13, 30)
After Change
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Download, if needed, and load example data files
sig = load_ndsp_data("sample_data_1.npy", folder="data")// Set sampling rate, and create a times vector for plotting
fs = 1000
times = create_times(len(sig)/fs, fs)