def main(): """main""" param_values = { "gNaTs2_tbar_NaTs2_t.apical": 0.026145, "gSKv3_1bar_SKv3_1.apical": 0.004226, "gImbar_Im.apical": 0.000143, "gNaTa_tbar_NaTa_t.axonal": 3.137968, "gK_Tstbar_K_Tst.axonal": 0.089259, "gamma_CaDynamics_E2.axonal": 0.002910, "gNap_Et2bar_Nap_Et2.axonal": 0.006827, "gSK_E2bar_SK_E2.axonal": 0.007104, "gCa_HVAbar_Ca_HVA.axonal": 0.000990, "gK_Pstbar_K_Pst.axonal": 0.973538, "gSKv3_1bar_SKv3_1.axonal": 1.021945, "decay_CaDynamics_E2.axonal": 287.198731, "gCa_LVAstbar_Ca_LVAst.axonal": 0.008752, "gamma_CaDynamics_E2.somatic": 0.000609, "gSKv3_1bar_SKv3_1.somatic": 0.303472, "gSK_E2bar_SK_E2.somatic": 0.008407, "gCa_HVAbar_Ca_HVA.somatic": 0.000994, "gNaTs2_tbar_NaTs2_t.somatic": 0.983955, "decay_CaDynamics_E2.somatic": 210.485284, "gCa_LVAstbar_Ca_LVAst.somatic": 0.000333, } cell = l5pc_model.create() print(cell.create_hoc(param_values))
def main(): '''main''' param_values = { 'gNaTs2_tbar_NaTs2_t.apical': 0.026145, 'gSKv3_1bar_SKv3_1.apical': 0.004226, 'gImbar_Im.apical': 0.000143, 'gNaTa_tbar_NaTa_t.axonal': 3.137968, 'gK_Tstbar_K_Tst.axonal': 0.089259, 'gamma_CaDynamics_E2.axonal': 0.002910, 'gNap_Et2bar_Nap_Et2.axonal': 0.006827, 'gSK_E2bar_SK_E2.axonal': 0.007104, 'gCa_HVAbar_Ca_HVA.axonal': 0.000990, 'gK_Pstbar_K_Pst.axonal': 0.973538, 'gSKv3_1bar_SKv3_1.axonal': 1.021945, 'decay_CaDynamics_E2.axonal': 287.198731, 'gCa_LVAstbar_Ca_LVAst.axonal': 0.008752, 'gamma_CaDynamics_E2.somatic': 0.000609, 'gSKv3_1bar_SKv3_1.somatic': 0.303472, 'gSK_E2bar_SK_E2.somatic': 0.008407, 'gCa_HVAbar_Ca_HVA.somatic': 0.000994, 'gNaTs2_tbar_NaTs2_t.somatic': 0.983955, 'decay_CaDynamics_E2.somatic': 210.485284, 'gCa_LVAstbar_Ca_LVAst.somatic': 0.000333, } cell = l5pc_model.create() print(cell.create_hoc(param_values))
def main(): '''main''' param_values = { 'gNaTs2_tbar_NaTs2_t.apical': 0.026145, 'gSKv3_1bar_SKv3_1.apical': 0.004226, 'gImbar_Im.apical': 0.000143, 'gNaTa_tbar_NaTa_t.axonal': 3.137968, 'gK_Tstbar_K_Tst.axonal': 0.089259, 'gamma_CaDynamics_E2.axonal': 0.002910, 'gNap_Et2bar_Nap_Et2.axonal': 0.006827, 'gSK_E2bar_SK_E2.axonal': 0.007104, 'gCa_HVAbar_Ca_HVA.axonal': 0.000990, 'gK_Pstbar_K_Pst.axonal': 0.973538, 'gSKv3_1bar_SKv3_1.axonal': 1.021945, 'decay_CaDynamics_E2.axonal': 287.198731, 'gCa_LVAstbar_Ca_LVAst.axonal': 0.008752, 'gamma_CaDynamics_E2.somatic': 0.000609, 'gSKv3_1bar_SKv3_1.somatic': 0.303472, 'gSK_E2bar_SK_E2.somatic': 0.008407, 'gCa_HVAbar_Ca_HVA.somatic': 0.000994, 'gNaTs2_tbar_NaTs2_t.somatic': 0.983955, 'decay_CaDynamics_E2.somatic': 210.485284, 'gCa_LVAstbar_Ca_LVAst.somatic': 0.000333, } cell = l5pc_model.create() print cell.create_hoc(param_values)
def setup(self): """Set up class""" sys.path.insert(0, L5PC_PATH) import l5pc_model # NOQA self.l5pc_cell = l5pc_model.create() nt.assert_is_instance(self.l5pc_cell, bluepyopt.ephys.models.CellModel) self.nrn = ephys.simulators.NrnSimulator()
def setup(self): """Set up class""" sys.path.insert(0, L5PC_PATH) import l5pc_model # NOQA self.l5pc_cell = l5pc_model.create() nt.assert_is_instance( self.l5pc_cell, bluepyopt.ephys.models.CellModel) self.nrn = ephys.simulators.NrnSimulator()
def create(): """Setup""" l5pc_cell = l5pc_model.create() fitness_protocols = define_protocols() fitness_calculator = define_fitness_calculator(fitness_protocols) param_names = [param.name for param in l5pc_cell.params.values() if not param.frozen] sim = ephys.simulators.NrnSimulator() return ephys.evaluators.CellEvaluator( cell_model=l5pc_cell, param_names=param_names, fitness_protocols=fitness_protocols, fitness_calculator=fitness_calculator, sim=sim)