{ "cells": [ { "cell_type": "markdown", "id": "f405b104", "metadata": {}, "source": [ "## Sound devices" ] }, { "cell_type": "code", "execution_count": 2, "id": "b0f00b6d", "metadata": {}, "outputs": [ { "data": { "text/plain": [ " 0 HDA Intel PCH: CX20632 Analog (hw:0,0), ALSA (2 in, 0 out)\n", " 1 HDA Intel PCH: CX20632 Alt Analog (hw:0,2), ALSA (2 in, 0 out)\n", " 2 HDA Intel PCH: HDMI 0 (hw:0,3), ALSA (0 in, 8 out)\n", " 3 HDA Intel PCH: HDMI 1 (hw:0,7), ALSA (0 in, 8 out)\n", " 4 HDA Intel PCH: HDMI 2 (hw:0,8), ALSA (0 in, 8 out)\n", " 5 HDA Intel PCH: HDMI 3 (hw:0,9), ALSA (0 in, 8 out)\n", " 6 HDA Intel PCH: HDMI 4 (hw:0,10), ALSA (0 in, 8 out)\n", " 7 HD Pro Webcam C920: USB Audio (hw:1,0), ALSA (2 in, 0 out)\n", " 8 sysdefault, ALSA (128 in, 0 out)\n", " 9 hdmi, ALSA (0 in, 8 out)\n", " 10 samplerate, ALSA (128 in, 0 out)\n", " 11 speexrate, ALSA (128 in, 0 out)\n", " 12 pulse, ALSA (32 in, 32 out)\n", " 13 upmix, ALSA (8 in, 0 out)\n", " 14 vdownmix, ALSA (6 in, 0 out)\n", "* 15 default, ALSA (32 in, 32 out)" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import sounddevice as sd\n", "sd.query_devices()" ] }, { "cell_type": "code", "execution_count": null, "id": "248fdc7c", "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "markdown", "id": "d2ea950d", "metadata": {}, "source": [ "## Postprocessing" ] }, { "cell_type": "code", "execution_count": 7, "id": "0685d511", "metadata": {}, "outputs": [], "source": [ "import os, h5py\n", "import numpy as np\n", "from modules.postprocessing import pack" ] }, { "cell_type": "code", "execution_count": 3, "id": "9c9afe48", "metadata": {}, "outputs": [], "source": [ "source = '/home/sobolev/nevermind/Andrey/data'\n", "#source = 'Z:\\\\Andrey\\\\data'\n", "animal = '008229'\n", "session = '008229_hippoSIT_2022-06-09_14-15-49'\n", "\n", "session_path = os.path.join(source, animal, session)\n", "h5name = pack(session_path)" ] }, { "cell_type": "code", "execution_count": 8, "id": "04a00a57", "metadata": {}, "outputs": [], "source": [ "with h5py.File(h5name, 'r') as f:\n", " islands = np.array(f['raw']['islands'])" ] }, { "cell_type": "code", "execution_count": null, "id": "4c7997af", "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "markdown", "id": "ab560395", "metadata": {}, "source": [ "## Best-match rotation" ] }, { "cell_type": "code", "execution_count": null, "id": "aac74482", "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 }