Exemple #1
0
 def __init__(self, cell, probes):
     # (4.1) The base C++ class constructor must be called first, to ensure that
     # all memory in the C++ class is initialized correctly.
     arbor.recipe.__init__(self)
     self.the_cell = cell
     self.the_probes = probes
     self.the_props = arbor.neuron_cable_properties()
Exemple #2
0
 def __init__(self):
     super().__init__()
     self.the_props = arbor.neuron_cable_properties()
     self.trains = [
             [0.8, 2, 2.1, 3],
             [0.4, 2, 2.2, 3.1, 4.5],
             [0.2, 2, 2.8, 3]]
    def __init__(self, probes, Vms, length, radius, cm, rL, g, gj_g,
                 cv_policy_max_extent):
        """
        probes -- list of probes

        Vms -- membrane leak potentials of the two cells
        length -- length of cable in μm
        radius -- radius of cable in μm
        cm -- membrane capacitance in F/m^2
        rL -- axial resistivity in Ω·cm
        g -- membrane conductivity in S/cm^2
        gj_g -- gap junction conductivity in μS

        cv_policy_max_extent -- maximum extent of control volume in μm
        """

        # The base C++ class constructor must be called first, to ensure that
        # all memory in the C++ class is initialized correctly.
        arbor.recipe.__init__(self)

        self.the_probes = probes

        self.Vms = Vms
        self.length = length
        self.radius = radius
        self.cm = cm
        self.rL = rL
        self.g = g
        self.gj_g = gj_g

        self.cv_policy_max_extent = cv_policy_max_extent

        self.the_props = arbor.neuron_cable_properties()
        self.the_cat = arbor.default_catalogue()
        self.the_props.register(self.the_cat)
Exemple #4
0
 def __init__(self, ncells_per_chain, nchains):
     arbor.recipe.__init__(self)
     self.nchains = nchains
     self.ncells_per_chain = ncells_per_chain
     self.props = arbor.neuron_cable_properties()
     self.cat = arbor.default_catalogue()
     self.props.register(self.cat)
Exemple #5
0
    def __init__(self, dT, n_pairs):
        arbor.recipe.__init__(self)
        self.dT = dT
        self.n_pairs = n_pairs

        self.the_props = arbor.neuron_cable_properties()
        self.the_cat = arbor.default_catalogue()
        self.the_props.register(self.the_cat)
Exemple #6
0
 def __init__(self, n=10):
     # The base C++ class constructor must be called first, to ensure that
     # all memory in the C++ class is initialized correctly.
     arbor.recipe.__init__(self)
     self.ncells = n
     self.props = arbor.neuron_cable_properties()
     self.cat = arbor.default_catalogue()
     self.props.register(self.cat)
Exemple #7
0
 def __init__(self):
     A.recipe.__init__(self)
     st = A.segment_tree()
     i = st.append(A.mnpos, (0, 0, 0, 10), (1, 0, 0, 10), 1)
     st.append(i, (1, 3, 0, 5), 1)
     st.append(i, (1, -4, 0, 3), 1)
     self.the_morphology = A.morphology(st)
     self.the_cat = A.default_catalogue()
     self.the_props = A.neuron_cable_properties()
     self.the_props.register(self.the_cat)
Exemple #8
0
    def __init__(self, cell):
        super().__init__()

        self.the_cell = cell

        self.vprobe_id = (0, 0)
        self.iprobe_id = (0, 1)
        self.cprobe_id = (0, 2)

        self.the_props = arbor.neuron_cable_properties()
Exemple #9
0
 def __init__(self):
     arb.recipe.__init__(self)
     self.tree = arb.segment_tree()
     self.tree.append(arb.mnpos, (0, 0, 0, 10), (1, 0, 0, 10), 1)
     self.props = arb.neuron_cable_properties()
     self.props.catalogue = arb.load_catalogue(cat)
     d = arb.decor()
     d.paint('(all)', 'dummy')
     d.set_property(Vm=0.0)
     self.cell = arb.cable_cell(self.tree, arb.label_dict(), d)
Exemple #10
0
    def __init__(self, cell):
        super().__init__()

        self.the_cell = cell

        self.vprobe_id = (0, 0)
        self.iprobe_id = (0, 1)
        self.cprobe_id = (0, 2)

        self.the_props = arbor.neuron_cable_properties()
        self.the_cat = arbor.default_catalogue()
        self.the_props.register(self.the_cat)
 def __init__(self, nl_network, pop_indices_vs_gids, pops_vs_components, proj_weights, proj_delays):
     # The base C++ class constructor must be called first, to ensure that
     # all memory in the C++ class is initialized correctly.
     arbor.recipe.__init__(self)
     self.props = arbor.neuron_cable_properties()
     self.cat = arbor.default_catalogue()
     self.props.register(self.cat)
     self.pop_indices_vs_gids = pop_indices_vs_gids
     self.pops_vs_components = pops_vs_components
     self.nl_network = nl_network
     self.proj_weights = proj_weights
     self.proj_delays = proj_delays
Exemple #12
0
    def __init__(self):
        arb.recipe.__init__(self)
        self.tree = arb.segment_tree()
        self.tree.append(arb.mnpos, (0, 0, 0, 10), (1, 0, 0, 10), 1)
        self.props = arb.neuron_cable_properties()
        try:
            self.cat = arb.default_catalogue()
            self.props.register(self.cat)
        except:
            print("Catalogue not found. Are you running from build directory?")
            raise

        d = arb.decor()
        d.paint('(all)', arb.density('pas'))
        d.set_property(Vm=0.0)
        self.cell = arb.cable_cell(self.tree, arb.label_dict(), d)
Exemple #13
0
    def __init__(self):
        A.recipe.__init__(self)
        st = A.segment_tree()
        st.append(A.mnpos, (0, 0, 0, 10), (1, 0, 0, 10), 1)

        dec = A.decor()

        dec.place('(location 0 0.08)', A.synapse("expsyn"), "syn0")
        dec.place('(location 0 0.09)', A.synapse("exp2syn"), "syn1")
        dec.place('(location 0 0.1)', A.iclamp(20.), "iclamp")
        dec.paint('(all)', A.density("hh"))

        self.cell = A.cable_cell(st, A.label_dict(), dec)

        self.props = A.neuron_cable_properties()
        self.props.catalogue = A.default_catalogue()
Exemple #14
0
    def __init__(self):
        A.recipe.__init__(self)
        st = A.segment_tree()
        st.append(A.mnpos, (0, 0, 0, 10), (1, 0, 0, 10), 1)

        dec = A.decor()

        dec.place('(location 0 0.08)', "expsyn")
        dec.place('(location 0 0.09)', "exp2syn")
        dec.paint('(all)', "hh")

        self.cell = A.cable_cell(st, A.label_dict(), dec)

        self.cat = A.default_catalogue()
        self.props = A.neuron_cable_properties()
        self.props.register(self.cat)
Exemple #15
0
    def __init__(self, probes,
                 Vm, length, radius, cm, rL, g,
                 stimulus_start, stimulus_duration, stimulus_amplitude,
                 cv_policy_max_extent):
        """
        probes -- list of probes

        Vm -- membrane leak potential
        length -- length of cable in μm
        radius -- radius of cable in μm
        cm -- membrane capacitance in F/m^2
        rL -- axial resistivity in Ω·cm
        g -- membrane conductivity in S/cm^2

        stimulus_start -- start of stimulus in ms
        stimulus_duration -- duration of stimulus in ms
        stimulus_amplitude -- amplitude of stimulus in nA

        cv_policy_max_extent -- maximum extent of control volume in μm
        """

        # (4.1) The base C++ class constructor must be called first, to ensure that
        # all memory in the C++ class is initialized correctly.
        arbor.recipe.__init__(self)

        self.the_probes = probes

        self.Vm = Vm
        self.length = length
        self.radius = radius
        self.cm = cm
        self.rL = rL
        self.g = g

        self.stimulus_start = stimulus_start
        self.stimulus_duration = stimulus_duration
        self.stimulus_amplitude = stimulus_amplitude

        self.cv_policy_max_extent = cv_policy_max_extent

        self.the_props = arbor.neuron_cable_properties()
        self.the_cat = arbor.default_catalogue()
        self.the_props.register(self.the_cat)
Exemple #16
0
 def __init__(self, n_cell):
     A.recipe.__init__(self)
     self.n_cell = n_cell
     self.props = A.neuron_cable_properties()
Exemple #17
0
 def __init__(self, ncells):
     # The base C++ class constructor must be called first, to ensure that
     # all memory in the C++ class is initialized correctly.
     arbor.recipe.__init__(self)
     self.ncells = ncells
     self.props = arbor.neuron_cable_properties()
Exemple #18
0
    def __init__(self, dT, n_pairs):
        arbor.recipe.__init__(self)
        self.dT = dT
        self.n_pairs = n_pairs

        self.the_props = arbor.neuron_cable_properties()
Exemple #19
0
 def __init__(self):
     A.recipe.__init__(self)
     self.props = A.neuron_cable_properties()
     self.trains = [[0.8, 2, 2.1, 3], [0.4, 2, 2.2, 3.1, 4.5],
                    [0.2, 2, 2.8, 3]]
Exemple #20
0
 def __init__(self, n_cell):
     A.recipe.__init__(self)
     self.n_cell = n_cell
     self.cat = A.default_catalogue()
     self.props = A.neuron_cable_properties()
     self.props.register(self.cat)
Exemple #21
0
 def __init__(self, ncells_per_chain, nchains):
     arbor.recipe.__init__(self)
     self.nchains = nchains
     self.ncells_per_chain = ncells_per_chain
     self.props = arbor.neuron_cable_properties()