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

All Samples(13)  |  Call(12)  |  Derive(0)  |  Import(1)

src/9/m/9ML-0.1.0/nineml/examples/AL/doc_tutorials/example1c_izikevich_transition.py   9ML(Download)
        name = "IzikevichNeuron",
        parameters = ['a','b','c','d'],
        analog_ports = [ al.AnalogPort('I', mode='recv'),
                         al.AnalogPort('V', mode='send') ],
        event_ports = [ al.EventPort('spikeoutput', mode='send') ],

src/9/m/9ML-0.1.0/nineml/examples/AL/doc_tutorials/example2_leaky_iaf_2regime.py   9ML(Download)
 
                                ),
                analog_ports=[al.AnalogPort("I", mode='recv')],
                parameters=['C', 'V_reset', 'Vth', 'gL', 't', 'trefractory', 'vL'],
                )

src/9/m/9ML-0.1.0/nineml/examples/AL/doc_tutorials/example1b_izikevich_statevariables.py   9ML(Download)
        name = "IzikevichNeuron",
        parameters = ['a','b','c','d'],
        analog_ports = [ al.AnalogPort('I', mode='recv'),
                         al.AnalogPort('V', mode='send') ],
        event_ports = [ al.EventPort('spikeoutput', mode='send') ],

src/9/m/9ML-0.1.0/nineml/examples/AL/doc_tutorials/example1_izikevich_interface.py   9ML(Download)
        name = "IzikevichNeuron",
        parameters = ['a','b','c','d'],
        analog_ports = [ al.AnalogPort('I', mode='recv'),
                         al.AnalogPort('V', mode='send') ],
        event_ports = [ al.EventPort('spikeoutput', mode='send') ],

src/9/m/9ML-0.1.0/nineml/abstraction_layer/visitors/cloner.py   9ML(Download)
    def visit_analogport(self, port, **kwargs):
        return nineml.abstraction_layer.AnalogPort( 
                name=self.prefix_variable(port.name, **kwargs) , 
                mode=port.mode,
                reduce_op=port.reduce_op )

src/9/m/9ML-0.1.0/test/test_to_resolve/test_AL_API.py   9ML(Download)
 
        # Check symbol as expression ...
        p = nineml.AnalogPort("q = v**2",mode='send')
        assert p.symbol == 'q'
        assert p.expr.rhs == "v**2"
                      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
 
        # test some port filtering, get with symb="V"
        ep = list(c1.filter_ports(symb="V"))
        assert len(ep)==1
        assert ep[0]==nineml.AnalogPort("V")

src/9/m/9ML-0.1.0/test/unit/nineml_test/abstraction_layer/component/ports_test.py   9ML(Download)
 
 
from nineml.abstraction_layer import AnalogPort
from nineml.abstraction_layer import RecvPort, SendPort, ReducePort
from nineml.abstraction_layer import RecvEventPort, SendEventPort