{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "## Importing Neuron \n", "\n", "from neuron import h ,gui\n", "h.load_file(\"stdrun.hoc\")\n", "\n", "from Classes_Alternate import Hu, Optrode\n", "cell = Hu()\n", "\n", "\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Soma photostimulation, Fig S6.B \n", "# Run this cell --> load \"Alternate_Photostim_Soma.ses\" --> init and run\n", "# Default is light+scattering\n", "\n", "optrode1 = Optrode(h.soma[1]) \n", "\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Distal Axon photostimulation, Fig S6. D\n", "# Run this cell --> load \"Alternate_Photostim_Distal_Axon.ses\" --> init and run\n", "# Default is scattered light\n", "\n", "optrode1 = Optrode(h.STIN[8]) " ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Proximal Axon photostimulation, Fig S6. C \n", "# Run this cell --> load \"Alternate_Photostim_Proximal_Axon.ses\" --> init and run\n", "# Default is scattered light. \n", "\n", "optrode1 = Optrode(h.STIN[6]) " ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Fig S6. A\n", "# Run this cell --> load \"Fig3A.ses\" --> init and run\n", "# Global blocking \n", "\n", "\n", "for i in range(0,17):\n", " h.node[i].gbar_km=0.02\n", " \n", "for i in range(0,33):\n", " h.MYSA[i].gbar_km=0.0015\n", " \n", "for i in range(0,33):\n", " h.FLUT[i].gbar_km=0.0015\n", " \n", "for i in range(0,17):\n", " h.STIN[i].gbar_km=0.0015\n", " \n", "\n", "h.soma[0].gbar_km=0.002\n", "h.soma[1].gbar_km=0.002\n", "h.hill[0].gbar_km=0.002\n", "h.ais[0].gbar_km=0.002\n", " \n", "optrode1 = Optrode(h.STIN[8]) " ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "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.8" } }, "nbformat": 4, "nbformat_minor": 1 }