stim response
This commit is contained in:
parent
a15c1396c6
commit
7f044e9b5b
|
@ -13169,7 +13169,7 @@ div#notebook {
|
|||
|
||||
|
||||
<div class="output_subarea output_stream output_stderr output_text">
|
||||
<pre>08:31:41 [I] klustakwik KlustaKwik2 version 0.2.6
|
||||
<pre>11:36:02 [I] klustakwik KlustaKwik2 version 0.2.6
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -13315,13 +13315,13 @@ div#notebook {
|
|||
|
||||
|
||||
|
||||
<div id="c31390dc-9698-436d-ab2a-1cbc4a5a53d7"></div>
|
||||
<div id="ab435e8e-523b-4fd6-b6b5-8138ce4c2f14"></div>
|
||||
<div class="output_subarea output_widget_view ">
|
||||
<script type="text/javascript">
|
||||
var element = $('#c31390dc-9698-436d-ab2a-1cbc4a5a53d7');
|
||||
var element = $('#ab435e8e-523b-4fd6-b6b5-8138ce4c2f14');
|
||||
</script>
|
||||
<script type="application/vnd.jupyter.widget-view+json">
|
||||
{"model_id": "d3f0400c75c745c789907bd763bf2833", "version_major": 2, "version_minor": 0}
|
||||
{"model_id": "476c31da67274b2396ed3f2ec54a8344", "version_major": 2, "version_minor": 0}
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
@ -13412,20 +13412,7 @@ var element = $('#c31390dc-9698-436d-ab2a-1cbc4a5a53d7');
|
|||
<div class="prompt input_prompt">In [ ]:</div>
|
||||
<div class="inner_cell">
|
||||
<div class="input_area">
|
||||
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">stuff</span> <span class="o">=</span> <span class="p">{</span>
|
||||
<span class="s2">"figures"</span><span class="p">:</span> <span class="s2">"figures"</span><span class="p">,</span>
|
||||
<span class="c1"># "statistics": "statistics"</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="k">for</span> <span class="n">key</span><span class="p">,</span> <span class="n">value</span> <span class="ow">in</span> <span class="n">stuff</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
|
||||
<span class="n">action</span><span class="o">.</span><span class="n">data</span><span class="p">[</span><span class="n">key</span><span class="p">]</span> <span class="o">=</span> <span class="n">value</span>
|
||||
<span class="n">data_path</span> <span class="o">=</span> <span class="n">action</span><span class="o">.</span><span class="n">data_path</span><span class="p">(</span><span class="n">key</span><span class="p">)</span>
|
||||
<span class="n">data_path</span><span class="o">.</span><span class="n">parent</span><span class="o">.</span><span class="n">mkdir</span><span class="p">(</span><span class="n">exist_ok</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">parents</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
|
||||
<span class="n">source</span> <span class="o">=</span> <span class="n">output</span> <span class="o">/</span> <span class="n">value</span>
|
||||
<span class="k">if</span> <span class="n">source</span><span class="o">.</span><span class="n">is_file</span><span class="p">():</span>
|
||||
<span class="n">shutil</span><span class="o">.</span><span class="n">copy</span><span class="p">(</span><span class="n">source</span><span class="p">,</span> <span class="n">data_path</span><span class="p">)</span>
|
||||
<span class="k">else</span><span class="p">:</span>
|
||||
<span class="n">copy_tree</span><span class="p">(</span><span class="nb">str</span><span class="p">(</span><span class="n">source</span><span class="p">),</span> <span class="nb">str</span><span class="p">(</span><span class="n">data_path</span><span class="p">))</span>
|
||||
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">copy_tree</span><span class="p">(</span><span class="n">output</span><span class="p">,</span> <span class="nb">str</span><span class="p">(</span><span class="n">action</span><span class="o">.</span><span class="n">data_path</span><span class="p">()))</span>
|
||||
</pre></div>
|
||||
|
||||
</div>
|
||||
|
@ -13445,6 +13432,19 @@ var element = $('#c31390dc-9698-436d-ab2a-1cbc4a5a53d7');
|
|||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="cell border-box-sizing code_cell rendered">
|
||||
<div class="input">
|
||||
<div class="prompt input_prompt">In [ ]:</div>
|
||||
<div class="inner_cell">
|
||||
<div class="input_area">
|
||||
<div class=" highlight hl-ipython3"><pre><span></span>
|
||||
</pre></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"08:31:41 [I] klustakwik KlustaKwik2 version 0.2.6\n"
|
||||
"11:36:02 [I] klustakwik KlustaKwik2 version 0.2.6\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
@ -148,12 +148,12 @@
|
|||
{
|
||||
"data": {
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"model_id": "d3f0400c75c745c789907bd763bf2833",
|
||||
"model_id": "476c31da67274b2396ed3f2ec54a8344",
|
||||
"version_major": 2,
|
||||
"version_minor": 0
|
||||
},
|
||||
"text/plain": [
|
||||
"HBox(children=(IntProgress(value=0, max=1281), HTML(value='')))"
|
||||
"HBox(children=(IntProgress(value=0, max=1298), HTML(value='')))"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
|
@ -230,20 +230,7 @@
|
|||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"stuff = {\n",
|
||||
" \"figures\": \"figures\",\n",
|
||||
"# \"statistics\": \"statistics\"\n",
|
||||
"}\n",
|
||||
"\n",
|
||||
"for key, value in stuff.items():\n",
|
||||
" action.data[key] = value\n",
|
||||
" data_path = action.data_path(key)\n",
|
||||
" data_path.parent.mkdir(exist_ok=True, parents=True)\n",
|
||||
" source = output / value\n",
|
||||
" if source.is_file():\n",
|
||||
" shutil.copy(source, data_path)\n",
|
||||
" else:\n",
|
||||
" copy_tree(str(source), str(data_path))"
|
||||
"copy_tree(output, str(action.data_path()))"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -254,6 +241,13 @@
|
|||
"source": [
|
||||
"septum_mec.analysis.registration.store_notebook(action, \"10-calculate-stimulus-response.ipynb\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue