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

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

src/9/m/9ML-0.1.0/nineml/examples/AL/components_done/nmda.py   9ML(Download)
    nmda = al.ComponentClass(name="NMDAPSR",
                     dynamics = dynamics,
                     analog_ports = [al.RecvPort("V"), al.SendPort("I"), ],
                     event_ports =  [al.RecvEventPort('spikeinput') ],
                     parameters =   ['taur','taud','gmax','mgconc','gamma','beta','E','weight']  

src/9/m/9ML-0.1.0/nineml/examples/AL/doc_tutorials/example3_cobasynapse.py   9ML(Download)
                         aliases = ["I := g*(E-V)"],
                         ),
                     analog_ports = [ al.RecvPort("V"), al.SendPort("I") ]
                     )
 

src/9/m/9ML-0.1.0/nineml/examples/AL/components_done/if_cond_exp.py   9ML(Download)
 
    analog_ports = [al.SendPort("V"), al.SendPort("gE"), al.SendPort("gI"),
             al.RecvPort("q")]
 
    c1 = al.ComponentClass("IF_cond_exp", regimes=regimes, analog_ports=analog_ports)

src/9/m/9ML-0.1.0/nineml/examples/AL/components_done/coba_synapse.py   9ML(Download)
                ],
            state_variables = [ al.StateVariable('g') ],
            analog_ports = [ al.RecvPort("V"), al.SendPort("I"), ],
            parameters = [ 'tau','q','vrev']  
                             )

src/9/m/9ML-0.1.0/test/unit/nineml_test/abstraction_layer/component/componentqueryer_test.py   9ML(Download)
        # Signature: name(self)
		# Get the namespace address of this component
        from nineml.abstraction_layer import ComponentClass, SendPort, RecvPort
        from nineml.abstraction_layer import NamespaceAddress
        d = ComponentClass(name='D', aliases=['A:=1', 'B:=2'], analog_ports=[SendPort('A'), SendPort('B')] )
        e = ComponentClass(name='E', analog_ports=[ RecvPort('C')] )
        f = ComponentClass(name='F', analog_ports=[ RecvPort('D')] )
        g = ComponentClass(name='G', analog_ports=[RecvPort('E')] )
        a = ComponentClass( name='A',
                            subnodes= { 'b': b, 'c': c }, 
                            analog_ports=[RecvPort('F')],
                            portconnections=[('b.d.A','F')] 
                            )

src/9/m/9ML-0.1.0/test/unit/nineml_test/abstraction_layer/component/component_test.py   9ML(Download)
    def test_analog_ports(self):
        # Signature: name
		# No Docstring
        from nineml.abstraction_layer import ComponentClass 
        from nineml.abstraction_layer import SendPort, RecvPort, ReducePort
        self.assertEqual( len(c.query.analog_reduce_ports), 0 )
 
        c = ComponentClass( name='C1', analog_ports=[RecvPort('B')])
        self.assertEqual( len( c.analog_ports), 1)
        self.assertEqual( c.analog_ports[0].mode, 'recv' )
    def duplicate_port_name_event_analog(self):
        from nineml.abstraction_layer import ComponentClass 
        from nineml.abstraction_layer import SendPort, RecvPort, ReducePort
        from nineml.exceptions import NineMLRuntimeError
 

src/9/m/9ML-0.1.0/test/test_to_resolve/test_AL_API.py   9ML(Download)
                )]
 
        ports = [nineml.RecvPort("V"),
                 nineml.SendPort("Isyn = g(E-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
from nineml.exceptions import NineMLRuntimeError
    def test_accept_visitor(self):
        from nineml.abstraction_layer import RecvPort, SendPort, ReducePort
        # Check the Component is forwarding arguments: 
        class TestVisitor(object):
            def visit(self, obj, **kwargs):