from neuroml import ElectricalConnectionInstanceW from neuroml import Property from neuroml import Instance from neuroml import Location from neuroml import PoissonFiringSynapse import neuroml.writers as writers import random random.seed(123) scale = 2 nml_doc = NeuroMLDocument(id="Complete") nml_doc.notes = "Lots of notes...." IafCell0 = IafCell(id="iaf0", C="1.0 nF", thresh="-50mV", reset="-65mV", leak_conductance="10 nS", leak_reversal="-65mV") nml_doc.iaf_cells.append(IafCell0) IafCell1 = IafCell(id="iaf1", C="1.0 nF", thresh="-50mV", reset="-65mV", leak_conductance="20 nS",
from neuroml import InputList from neuroml import ConnectionWD from neuroml import Projection from neuroml import Property from neuroml import Instance from neuroml import Location from neuroml import PoissonFiringSynapse import neuroml.writers as writers from random import random scale = 2 nml_doc = NeuroMLDocument(id="IafNet") nml_doc.notes = "Root notes" IafCell0 = IafCell(id="iaf0", C="1.0 nF", thresh = "-50mV", reset="-65mV", leak_conductance="10 nS", leak_reversal="-65mV") nml_doc.iaf_cells.append(IafCell0) IafCell1 = IafCell(id="iaf1", C="1.0 nF", thresh = "-50mV", reset="-65mV", leak_conductance="20 nS",
from neuroml import InputList from neuroml import ConnectionWD from neuroml import Projection from neuroml import Property from neuroml import Instance from neuroml import Location from neuroml import PoissonFiringSynapse import neuroml.writers as writers from random import random scale = 2 nml_doc = NeuroMLDocument(id="IafNet") nml_doc.notes = "Root notes" IafCell0 = IafCell(id="iaf0", C="1.0 nF", thresh="-50mV", reset="-65mV", leak_conductance="10 nS", leak_reversal="-65mV") nml_doc.iaf_cells.append(IafCell0) IafCell1 = IafCell(id="iaf1", C="1.0 nF", thresh="-50mV", reset="-65mV", leak_conductance="20 nS",
from neuroml import InputList from neuroml import Instance from neuroml import Location from neuroml import Network from neuroml import NeuroMLDocument from neuroml import PoissonFiringSynapse from neuroml import Population from neuroml import Projection from neuroml import Property import neuroml.writers as writers import random import math nml_doc = NeuroMLDocument(id="Example2") nml_doc.notes = "Demo of cell with spines" net = Network(id=nml_doc.id) net.notes = nml_doc.notes nml_doc.networks.append(net) populations = {} def add_instance(name, x, y, z): pop = populations[name] inst = Instance(id=len(pop.instances)) pop.size = pop.size + 1 pop.instances.append(inst)