|
@@ -245,6 +245,79 @@
|
|
|
"metadata": {},
|
|
|
"outputs": [],
|
|
|
"source": []
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "cell_type": "code",
|
|
|
+ "execution_count": null,
|
|
|
+ "id": "5149a1e2",
|
|
|
+ "metadata": {},
|
|
|
+ "outputs": [],
|
|
|
+ "source": []
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "cell_type": "markdown",
|
|
|
+ "id": "fdd8c434",
|
|
|
+ "metadata": {},
|
|
|
+ "source": [
|
|
|
+ "## Copy H5 from selected sessions to a separate folder"
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "cell_type": "code",
|
|
|
+ "execution_count": 5,
|
|
|
+ "id": "fb60603b",
|
|
|
+ "metadata": {},
|
|
|
+ "outputs": [],
|
|
|
+ "source": [
|
|
|
+ "import shutil\n",
|
|
|
+ "\n",
|
|
|
+ "source = '/home/sobolev/nevermind/Andrey/data'\n",
|
|
|
+ "dest = '/home/sobolev/nevermind/Andrey/sandbox/export'\n",
|
|
|
+ "\n",
|
|
|
+ "selected_sessions = [\n",
|
|
|
+ "'009266_hippoSIT_2023-04-17_17-04-17', # ch17, 20 + 55 correction, 5067 events. Showcase for N2 / N3 mod in target\n",
|
|
|
+ "'009266_hippoSIT_2023-04-18_10-10-37', # ch17, 10 + 55 correction, 5682 events\n",
|
|
|
+ "'009266_hippoSIT_2023-04-18_17-03-10', # ch17, 6 + 55 correction, 5494 events: FIXME very weird 1-2nd in target, find out\n",
|
|
|
+ "'009266_hippoSIT_2023-04-19_10-33-51', # ch17, 4 + 55 correction, 6424 events: very weird 1-2nd in target, find out\n",
|
|
|
+ "'009266_hippoSIT_2023-04-20_08-57-39', # ch1, 1 + 55 correction, 6424 events. Showcase for N2 / N3 mod in target\n",
|
|
|
+ "'009266_hippoSIT_2023-04-24_16-56-55', # ch17, 5 + 55* correction, 6165 events, frequency\n",
|
|
|
+ "'009266_hippoSIT_2023-04-26_08-20-17', # ch17, 12 + 55* correction, 6095 events, duration - showcase for N2 \n",
|
|
|
+ "'009266_hippoSIT_2023-05-02_12-22-14', # ch20, 10 + 55 correction, 5976 events, FIXME very weird 1-2nd in target, find out\n",
|
|
|
+ "'009266_hippoSIT_2023-05-04_09-11-06', # ch17, 5 + 55* correction, 4487 events, coma session with baseline AEPs\n",
|
|
|
+ "#'009266_hippoSIT_2023-05-04_19-47-15', # ch20, 2 + 55 correction, 5678 events, duration\n",
|
|
|
+ "]"
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "cell_type": "code",
|
|
|
+ "execution_count": 4,
|
|
|
+ "id": "42475af4",
|
|
|
+ "metadata": {},
|
|
|
+ "outputs": [],
|
|
|
+ "source": [
|
|
|
+ "for session in selected_sessions:\n",
|
|
|
+ " animal = session.split('_')[0]\n",
|
|
|
+ "\n",
|
|
|
+ " # create folder\n",
|
|
|
+ " session_src = os.path.join(source, animal, session)\n",
|
|
|
+ " session_dst = os.path.join(dest, animal, session)\n",
|
|
|
+ " if not os.path.exists(session_dst):\n",
|
|
|
+ " os.makedirs(session_dst)\n",
|
|
|
+ " \n",
|
|
|
+ " # copy files\n",
|
|
|
+ " for f_name in ['AEPs.h5', session + '.h5']:\n",
|
|
|
+ " src = os.path.join(session_src, f_name)\n",
|
|
|
+ " dst = os.path.join(session_dst, f_name)\n",
|
|
|
+ " shutil.copyfile(src, dst)"
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "cell_type": "code",
|
|
|
+ "execution_count": null,
|
|
|
+ "id": "48ac0857",
|
|
|
+ "metadata": {},
|
|
|
+ "outputs": [],
|
|
|
+ "source": []
|
|
|
}
|
|
|
],
|
|
|
"metadata": {
|