Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/9/m/9ML-0.1.0/test/test_to_resolve/test_AL_API.py   9ML(Download)
        r = nineml.Regime("dV/dt = 0.04*V*V + 5*V + 140.0 - U + Isyn + v1(v3(x))")
 
        c1 = nineml.Component("Izhikevich", regimes = [r], aliases=aliases )
        c1.backsub_aliases()
        c1.backsub_equations()
                 nineml.SendPort("Isyn = g(E-V)")]
 
        coba_syn = nineml.Component("CoBaSynapse", regimes = regimes, ports = ports)
 
        assert sorted(parameters) == sorted(coba_syn.parameters)
                      nineml.On("V>Vth",do=["V=c","U+=d",nineml.SpikeOutputEvent])])
 
        c1 = nineml.Component("Izhikevich", regimes = [r], ports=[nineml.AnalogPort("V")] )
        ap = list(c1.analog_ports)
 
                      nineml.On("V>Vth",do=["V=c","U+=d",nineml.SpikeOutputEvent])])
 
        c1 = nineml.Component("Izhikevich", regimes = [r], ports=[nineml.AnalogPort("V")] )
        ep = list(c1.event_ports)
        assert len(ep)==2
            transitions = nineml.On("V>Vth",do=[nineml.SpikeOutputEvent,myeventport ]))
 
        c1 = nineml.Component("Izhikevich", regimes = [r] )
        ep = list(c1.event_ports)
        assert len(ep)==2