-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.yml
75 lines (72 loc) · 2.68 KB
/
config.yml
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
#! This file is for the set up of xxx_med_to_csv program.
# Check the README file for more details on how to fill this config.
#* Three types of parameters:
# - "infos_col" : for 1 column output
# - "infos_lab" : for labelled output
# - "infos_opt" : for further options
#* Information should be in this format:
# Keys : values , where :
# - Keys are the column names that you want in the output file
# - Values are, for infos_col: row number - 1 (Start index :0)
# for infos_lab: letters used in medAssociate exercise
# for infos_opt: see next points
#* - cut: for cutting an output on a character "." into 2 columns :
# The value must be a list of list of 4 elements :
# [key to cut, separator (.), Col names of 1st sub-element, Col names of 2nd sub-element]
#* - eval: Result of a Python command line. It's a python
# dictionnary with Key as column name and Value a short command line as a string.
# For example this option can be used to get information in path (see examples below)
#* - remove_zero_ending: True or False. Remove the zeros at the end of an array
#! Warning to get a global array in a var set your key as :
# Key : ["LETTER", first-index (start at 0), "number to last index"]
# example: my_key : ["Z", 0, 120]
# Note: If the last index is the end of the array, write "end" instead of the number
# example: my_key : ["Z", 0, "end"]
#* The following Keys are med associate keywords only usable with labelled file :
# Start Date, End Date, Subject, Experiment, Group, Box, Start Time, End Time, MSN
#! Notes: Start Date and Start Time are automaticaly added to the results.
#Here are two templates with examples
infos_col:
subject: 6
box: 9
delay: 66
step_at_endsess: 73
sk_dur_at_endsess: 88
reinforced_resp: 90
reinforcers: 91
res_during_reward_deliv: 92
to_resp: 93
delivery_s: 94
to_s: 95
shock_s: 96
resets_number: 97
reinforcers_max_sk_dur: 98
mn_left_non_resp: 99
resp_cur_sk_dur: 100
final_sk_dur: 101
base_value: [120,"end"]
infos_lab:
subject: "Subject"
box: "Box"
delay: "B"
step_at_endsess: "I"
sk_dur_at_endsess: "X"
reinforced_resp: ["Z", 0]
reinforcers: ["Z", 1]
res_during_reward_deliv: ["Z", 2]
to_resp: ["Z", 3]
delivery_s: ["Z", 4]
to_s: ["Z", 5]
shock_s: ["Z", 6]
resets_number: ["Z", 7]
reinforcers_max_sk_dur: ["Z", 8]
mn_left_non_resp: ["Z", 9]
resp_cur_sk_dur: ["Z", 10]
final_sk_dur: ["Z", 11]
base_value: ["Z", 30, "end"]
options:
remove_zero_ending: True #Or False
#https://docs.python.org/3/howto/regex.html
filter: "shock"
cut : [["base_value", ".", "time_stamp", "shock_step"]]
eval: {"prog":"path_file.split('/')[-1]"}