def __init__(self, tstop, dt, seed=123456789):
    print(('\n    Starting simulation in NEURON of %sms generated from NeuroML2 model...\n' % tstop))
    self.seed = seed
    self.randoms = []
    self.next_global_id = 0
    self.next_spiking_input_id = 0
    '\n        Adding simulation Component(id=sim1 type=Simulation) of network/component: net1 (Type: network)\n        \n        '
    print('Population hhpop contains 1 instance(s) of component: hhcell of type: cell')
    h.load_file('hhcell.hoc')
    a_hhpop = []
    h('{ n_hhpop = 1 }')
    h('objectvar a_hhpop[n_hhpop]')
    for i in range(int(h.n_hhpop)):
        h(('a_hhpop[%i] = new hhcell()' % i))
        h(('access a_hhpop[%i].soma' % i))
        self.next_global_id += 1
    h('proc initialiseV_hhpop() { for i = 0, n_hhpop-1 { a_hhpop[i].set_initial_v() } }')
    h('objref fih_hhpop')
    h('{fih_hhpop = new FInitializeHandler(0, "initialiseV_hhpop()")}')
    h('proc initialiseIons_hhpop() { for i = 0, n_hhpop-1 { a_hhpop[i].set_initial_ion_properties() } }')
    h('objref fih_ion_hhpop')
    h('{fih_ion_hhpop = new FInitializeHandler(1, "initialiseIons_hhpop()")}')
    h('objref explicitInput_pulseGen1a_hhpop0_soma')
    h('a_hhpop[0].soma { explicitInput_pulseGen1a_hhpop0_soma = new pulseGen1(0.5) } ')
    trec = h.Vector()
    trec.record(h._ref_t)
    h.tstop = tstop
    h.dt = dt
    h.steps_per_ms = (1 / h.dt)
    h(' objectvar v_time ')
    h(' { v_time = new Vector() } ')
    h(' { v_time.record(&t) } ')
    h.v_time.resize(((h.tstop * h.steps_per_ms) + 1))
    self.initialized = False
    self.sim_end = (- 1)
def __init__(self, tstop, dt, seed=123456789):
    print(('\n    Starting simulation in NEURON of %sms generated from NeuroML2 model...\n' % tstop))
    self.seed = seed
    self.randoms = []
    self.next_global_id = 0
    self.next_spiking_input_id = 0
    '\n        Adding simulation Component(id=sim1 type=Simulation) of network/component: net1 (Type: network)\n        \n        '
    print('Population hhpop contains 1 instance(s) of component: hhcell of type: cell')
    h.load_file('hhcell.hoc')
    a_hhpop = []
    h('{ n_hhpop = 1 }')
    h('objectvar a_hhpop[n_hhpop]')
    for i in range(int(h.n_hhpop)):
        h(('a_hhpop[%i] = new hhcell()' % i))
        h(('access a_hhpop[%i].soma' % i))
        self.next_global_id += 1
    h('proc initialiseV_hhpop() { for i = 0, n_hhpop-1 { a_hhpop[i].set_initial_v() } }')
    h('objref fih_hhpop')
    h('{fih_hhpop = new FInitializeHandler(0, "initialiseV_hhpop()")}')
    h('proc initialiseIons_hhpop() { for i = 0, n_hhpop-1 { a_hhpop[i].set_initial_ion_properties() } }')
    h('objref fih_ion_hhpop')
    h('{fih_ion_hhpop = new FInitializeHandler(1, "initialiseIons_hhpop()")}')
    h('objref explicitInput_pulseGen1a_hhpop0_soma')
    h('a_hhpop[0].soma { explicitInput_pulseGen1a_hhpop0_soma = new pulseGen1(0.5) } ')
    trec = h.Vector()
    trec.record(h._ref_t)
    h.tstop = tstop
    h.dt = dt
    h.steps_per_ms = (1 / h.dt)
    h(' objectvar v_time ')
    h(' { v_time = new Vector() } ')
    h(' { v_time.record(&t) } ')
    h.v_time.resize(((h.tstop * h.steps_per_ms) + 1))
    self.initialized = False
    self.sim_end = (- 1)