def __init__(self, cell, probes): # The base C++ class constructor must be called first to ensure that all memory # in the C++ class is initialised correctly arbor.recipe.__init__(self) self.the_cell = cell self.the_probes = probes self.the_cat = arbor.default_catalogue() self.the_props = arbor.cable_global_properties()
def __init__(self, cell, probes): # 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_cat = arbor.default_catalogue() self.the_cat.extend(arbor.allen_catalogue(), "") self.the_props = arbor.cable_global_properties() self.the_props.set_property(Vm=-65, tempK=300, rL=35.4, cm=0.01) self.the_props.set_ion(ion='na', int_con=10, ext_con=140, rev_pot=50, method='nernst/na') self.the_props.set_ion(ion='k', int_con=54.4, ext_con=2.5, rev_pot=-77) self.the_props.set_ion(ion='ca', int_con=5e-5, ext_con=2, rev_pot=132.5) self.the_props.register(self.the_cat)
def __init__(self, cell, probes): # The base C++ class constructor must be called first to ensure that all memory # in the C++ class is initialised correctly arbor.recipe.__init__(self) self.the_cell = cell self.the_probes = probes self.the_cat = arbor.default_catalogue() self.the_props = arbor.cable_global_properties() self.the_props.set_property(Vm=-45, cm=0.01, rL=12000) self.the_props.set_ion(ion='na', int_con=10, ext_con=140, rev_pot=50, method='nernst/na') self.the_props.set_ion(ion='k', int_con=54.4, ext_con=2.5, rev_pot=-77) self.the_props.set_ion(ion='ca', int_con=5e-5, ext_con=2, rev_pot=132.5)