|
@@ -0,0 +1,98 @@
|
|
|
+{
|
|
|
+ "cells": [
|
|
|
+ {
|
|
|
+ "cell_type": "code",
|
|
|
+ "execution_count": 2,
|
|
|
+ "id": "6caa74a0",
|
|
|
+ "metadata": {},
|
|
|
+ "outputs": [],
|
|
|
+ "source": [
|
|
|
+ "import shutil\n",
|
|
|
+ "import os, sys"
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "cell_type": "code",
|
|
|
+ "execution_count": 3,
|
|
|
+ "id": "b4a07ca0",
|
|
|
+ "metadata": {},
|
|
|
+ "outputs": [],
|
|
|
+ "source": [
|
|
|
+ "# copying selected videos\n",
|
|
|
+ "\n",
|
|
|
+ "src = '/home/sobolev/nevermind/Andrey/data'\n",
|
|
|
+ "dst = '/home/sobolev/nevermind/Andrey/analysis/MoSeq/'\n",
|
|
|
+ "\n",
|
|
|
+ "animal = '009265'\n",
|
|
|
+ "\n",
|
|
|
+ "sessions = [\n",
|
|
|
+ "'009265_hippoSIT_2023-02-24_09-53-26',\n",
|
|
|
+ "'009265_hippoSIT_2023-02-24_17-22-46',\n",
|
|
|
+ "'009265_hippoSIT_2023-02-27_10-18-32',\n",
|
|
|
+ "'009265_hippoSIT_2023-02-27_15-33-46',\n",
|
|
|
+ "'009265_hippoSIT_2023-02-28_09-16-50',\n",
|
|
|
+ "'009265_hippoSIT_2023-02-28_13-16-10',\n",
|
|
|
+ "'009265_hippoSIT_2023-02-28_20-45-04',\n",
|
|
|
+ "'009265_hippoSIT_2023-03-01_10-46-12',\n",
|
|
|
+ "'009265_hippoSIT_2023-03-02_09-32-54',\n",
|
|
|
+ "'009265_hippoSIT_2023-03-02_16-27-42',\n",
|
|
|
+ "'009265_hippoSIT_2023-03-02_20-11-35',\n",
|
|
|
+ "'009265_hippoSIT_2023-03-03_09-37-07',\n",
|
|
|
+ "'009265_hippoSIT_2023-03-03_16-00-47',\n",
|
|
|
+ "'009265_hippoSIT_2023-03-04_11-12-04',\n",
|
|
|
+ "'009265_hippoSIT_2023-03-05_11-52-17',\n",
|
|
|
+ "'009265_hippoSIT_2023-03-05_18-31-32',\n",
|
|
|
+ "'009265_hippoSIT_2023-03-08_18-10-07',\n",
|
|
|
+ "'009265_hippoSIT_2023-03-09_20-03-08',\n",
|
|
|
+ "'009265_hippoSIT_2023-03-10_09-57-34',\n",
|
|
|
+ "'009265_hippoSIT_2023-04-13_09-54-39',\n",
|
|
|
+ "'009265_hippoSIT_2023-04-20_11-39-02'\n",
|
|
|
+ "]\n"
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "cell_type": "code",
|
|
|
+ "execution_count": 5,
|
|
|
+ "id": "a36fc55f",
|
|
|
+ "metadata": {},
|
|
|
+ "outputs": [],
|
|
|
+ "source": [
|
|
|
+ "for session in sessions:\n",
|
|
|
+ " \n",
|
|
|
+ " src_fname = os.path.join(src, animal, session, 'video.avi')\n",
|
|
|
+ " dst_fname = os.path.join(dst, animal, '%s.avi' % session)\n",
|
|
|
+ "\n",
|
|
|
+ " shutil.copyfile(src_fname, dst_fname)"
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "cell_type": "code",
|
|
|
+ "execution_count": null,
|
|
|
+ "id": "959c3a6f",
|
|
|
+ "metadata": {},
|
|
|
+ "outputs": [],
|
|
|
+ "source": []
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "metadata": {
|
|
|
+ "kernelspec": {
|
|
|
+ "display_name": "Python 3 (ipykernel)",
|
|
|
+ "language": "python",
|
|
|
+ "name": "python3"
|
|
|
+ },
|
|
|
+ "language_info": {
|
|
|
+ "codemirror_mode": {
|
|
|
+ "name": "ipython",
|
|
|
+ "version": 3
|
|
|
+ },
|
|
|
+ "file_extension": ".py",
|
|
|
+ "mimetype": "text/x-python",
|
|
|
+ "name": "python",
|
|
|
+ "nbconvert_exporter": "python",
|
|
|
+ "pygments_lexer": "ipython3",
|
|
|
+ "version": "3.8.10"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "nbformat": 4,
|
|
|
+ "nbformat_minor": 5
|
|
|
+}
|