-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmain.yaml
116 lines (111 loc) · 2.76 KB
/
main.yaml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
import:
# Input graphs
# -------------
# - graphs/bitalino.yaml # uncomment this line to use bitalino device
# - graphs/synthetic.yaml # uncomment this line to use brainflow device
# - graphs/cython.yaml # uncomment this line to use openBCI device
- graphs/replay.yaml # uncomment this line to use replayed data
# - graphs/sinus.yaml # uncomment this line to use generated data
# - graphs/save.yaml # uncomment this graph to save the data in HDF5
graphs:
- id: broker
nodes:
- id: broker
module: timeflux.nodes.zmq
class: Broker
- id: processing
nodes:
- id: sub
module: timeflux.nodes.zmq
class: Sub
params:
topics: [ raw ]
- id: notch
module: timeflux_dsp.nodes.filters
class: IIRFilter
params:
filter_type: bandstop
frequencies: [45, 55]
order: 1
- id: bandpass
module: timeflux_dsp.nodes.filters
class: IIRFilter
params:
filter_type: bandpass
frequencies: [0.1, 30]
order: 3
- id: select
module: timeflux.nodes.query
class: LocQuery
params:
key: [ Fpz ]
- id: filter_bank
module: timeflux_dsp.nodes.filters
class: FilterBank
params:
filters:
'delta': {frequencies: [1, 4], order: 3}
'theta': {frequencies: [5, 7], order: 3}
'alpha': {frequencies: [8, 12], order: 3}
'beta': {frequencies: [13, 20], order: 3}
'gamma': {frequencies: [25, 40], order: 3}
design: butter
- id: band_powers
module: nodes.power
class: Power
params:
length: 3
step: 1
- id: pub_filtered
module: timeflux.nodes.zmq
class: Pub
params:
topic: filtered
- id: pub_bands
module: timeflux.nodes.zmq
class: Pub
params:
topic: bands
- id: display
module: timeflux.nodes.debug
class: Display
edges:
- source: sub:raw
target: notch
- source: notch
target: bandpass
- source: bandpass
target: filter_bank
- source: filter_bank
target: band_powers
- source: bandpass
target: pub_filtered
- source: band_powers
target: pub_bands
# - source: band_powers
# target: display
rate: 10
- id: apps
nodes:
- id: sub
module: timeflux.nodes.zmq
class: Sub
params:
topics:
- raw
- filtered
- bands
- id: ui
module: timeflux_ui.nodes.ui
class: UI
params:
routes:
bands: www
edges:
- source: sub:raw
target: ui:raw
- source: sub:filtered
target: ui:filtered
- source: sub:bands
target: ui:bands
rate: 10