forked from srarty/Data-Driven-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuntitled0.py
More file actions
30 lines (23 loc) · 709 Bytes
/
untitled0.py
File metadata and controls
30 lines (23 loc) · 709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 22 11:11:58 2020
@author: Artemio Soto-Breceda [artemios]
"""
# Libraries
import numpy as np
import mat73 # To load Matlab v7.3 and later data files
# Local functions
from set_params import set_params
mat = mat73.loadmat('./data/Seizure_1.mat') # Load the data. Change this file for alternative data
Seizure = mat["Seizure"] # 16 Channels
# Chose a channel, or loop through the 16
iCh = 1; # Setting channel manually
print('Channel %02d ...' % iCh) # Print current channel
# Initialize input
input = 300
input_offset = np.empty(0)
# Generate some data
time = 5;
Fs = 0.4e3;
#TODO: Call set_params, define it first, obviously
out = set_params(1,2,3,4)