-
Notifications
You must be signed in to change notification settings - Fork 0
/
train_advance.py
34 lines (24 loc) · 888 Bytes
/
train_advance.py
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
from cortex import Cortex
class TrainAdvance():
def __init__(self):
self.c = Cortex(user, debug_mode=True)
self.c.do_prepare_steps()
def get_active_action(self, profile_name):
self.c.get_mental_command_active_action(profile_name)
def get_command_brain_map(self, profile_name):
self.c.get_mental_command_brain_map(profile_name)
def get_training_threshold(self):
self.c.get_mental_command_training_threshold(profile_name)
# ---------------------------------------------------
user = {
"license" : "your emotivpro license, which could use for third party app",
"client_id" : "your client id",
"client_secret" : "your client secret",
"debit" : 100
}
t = TrainAdvance()
profile_name = 'your trained profile name'
t.get_active_action(profile_name)
t.get_command_brain_map(profile_name)
t.get_training_threshold()
# ---------------------------------------------------