Skip to content

Commit 8c5faea

Browse files
committed
clear output notebooks
1 parent a4b035f commit 8c5faea

File tree

2 files changed

+38
-305
lines changed

2 files changed

+38
-305
lines changed

notebooks/demo_1_IoNS YRD_20201118.ipynb

Lines changed: 14 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
{
1111
"cell_type": "code",
12-
"execution_count": 35,
12+
"execution_count": null,
1313
"metadata": {},
1414
"outputs": [],
1515
"source": [
@@ -34,7 +34,7 @@
3434
},
3535
{
3636
"cell_type": "code",
37-
"execution_count": 36,
37+
"execution_count": null,
3838
"metadata": {
3939
"scrolled": true
4040
},
@@ -65,23 +65,9 @@
6565
},
6666
{
6767
"cell_type": "code",
68-
"execution_count": 37,
68+
"execution_count": null,
6969
"metadata": {},
70-
"outputs": [
71-
{
72-
"name": "stdout",
73-
"output_type": "stream",
74-
"text": [
75-
"\n",
76-
"Data will be saved in this directory:\n",
77-
"\t/home/remi/github/CPP_BIDS/notebooks/new_experiment/source/sub-001/ses-001/beh\n",
78-
"\n",
79-
"Data will be saved in this file:\n",
80-
"\tsub-001_ses-001_task-testTask_run-001_events_date-202011171630.tsv\n",
81-
"onset\tduration\ttrial_type\n"
82-
]
83-
}
84-
],
70+
"outputs": [],
8571
"source": [
8672
"cfg = createFilename(cfg);\n",
8773
"logFile = saveEventsFile('init', cfg);\n",
@@ -99,18 +85,9 @@
9985
},
10086
{
10187
"cell_type": "code",
102-
"execution_count": 38,
88+
"execution_count": null,
10389
"metadata": {},
104-
"outputs": [
105-
{
106-
"name": "stdout",
107-
"output_type": "stream",
108-
"text": [
109-
"2.000000\t0.250000\ttarget\t\r\n",
110-
"5.000000\t0.360000\tno_target\t\r\n"
111-
]
112-
}
113-
],
90+
"outputs": [],
11491
"source": [
11592
"logFile(1, 1).onset = 2;\n",
11693
"logFile(1, 1).trial_type = 'target';\n",
@@ -125,21 +102,9 @@
125102
},
126103
{
127104
"cell_type": "code",
128-
"execution_count": 39,
105+
"execution_count": null,
129106
"metadata": {},
130-
"outputs": [
131-
{
132-
"name": "stdout",
133-
"output_type": "stream",
134-
"text": [
135-
"\r\n",
136-
"Data were saved in this file:\r\n",
137-
"\r\n",
138-
"/home/remi/github/CPP_BIDS/notebooks/new_experiment/source/sub-001/ses-001/beh/sub-001_ses-001_task-testTask_run-001_events_date-202011171630.tsv\r\n",
139-
"\r\n"
140-
]
141-
}
142-
],
107+
"outputs": [],
143108
"source": [
144109
"% close the file\n",
145110
"saveEventsFile('close', cfg, logFile);"
@@ -154,78 +119,29 @@
154119
},
155120
{
156121
"cell_type": "code",
157-
"execution_count": 40,
122+
"execution_count": null,
158123
"metadata": {
159124
"scrolled": true
160125
},
161-
"outputs": [
162-
{
163-
"name": "stdout",
164-
"output_type": "stream",
165-
"text": [
166-
"\u001b[01;34mnew_experiment\u001b[00m\r\n",
167-
"└── \u001b[01;34msource\u001b[00m\r\n",
168-
" └── \u001b[01;34msub-001\u001b[00m\r\n",
169-
" └── \u001b[01;34mses-001\u001b[00m\r\n",
170-
" └── \u001b[01;34mbeh\u001b[00m\r\n",
171-
" ├── sub-001_ses-001_task-testTask_run-001_events_date-202011171630.json\r\n",
172-
" └── sub-001_ses-001_task-testTask_run-001_events_date-202011171630.tsv\r\n",
173-
"\r\n",
174-
"4 directories, 2 files\r\n",
175-
"\n"
176-
]
177-
}
178-
],
126+
"outputs": [],
179127
"source": [
180128
"!tree new_experiment"
181129
]
182130
},
183131
{
184132
"cell_type": "code",
185-
"execution_count": 41,
133+
"execution_count": null,
186134
"metadata": {},
187-
"outputs": [
188-
{
189-
"name": "stdout",
190-
"output_type": "stream",
191-
"text": [
192-
"onset\tduration\ttrial_type\r\n",
193-
"2.000000\t0.250000\ttarget\t\r\n",
194-
"5.000000\t0.360000\tno_target\t\r\n",
195-
"\n"
196-
]
197-
}
198-
],
135+
"outputs": [],
199136
"source": [
200137
"!cat new_experiment/source/sub-001/ses-001/beh/sub-001_ses-001_task-testTask_run-001_events_date-*.tsv"
201138
]
202139
},
203140
{
204141
"cell_type": "code",
205-
"execution_count": 34,
142+
"execution_count": null,
206143
"metadata": {},
207-
"outputs": [
208-
{
209-
"name": "stdout",
210-
"output_type": "stream",
211-
"text": [
212-
"{\r\n",
213-
" \"onset\": {\r\n",
214-
" \"Description\": \"time elapsed since experiment start\",\r\n",
215-
" \"Units\": \"s\"\r\n",
216-
" },\r\n",
217-
" \"trial_type\": {\r\n",
218-
" \"Description\": \"types of trial\",\r\n",
219-
" \"Levels\": \"\"\r\n",
220-
" },\r\n",
221-
" \"duration\": {\r\n",
222-
" \"Description\": \"duration of the event or the block\",\r\n",
223-
" \"Units\": \"s\"\r\n",
224-
" }\r\n",
225-
"}\n"
226-
]
227-
}
228-
],
144+
"outputs": [],
229145
"source": [
230146
"!cat new_experiment/source/sub-001/ses-001/beh/sub-001_ses-001_task-testTask_run-001_events_date-*.json"
231147
]

0 commit comments

Comments
 (0)