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

All Samples(14)  |  Call(10)  |  Derive(0)  |  Import(4)

src/9/m/9ML-0.1.0/nineml/examples/AL/components_done/nmda.py   9ML(Download)
 
    dynamics = al.Dynamics(
                    aliases = [
                                "taupeak := taur*taud/(taud - taur)*log(taud/taur)",
                                "factor := 1/(exp(-taupeak/taud) - exp(-taupeak/taur))",

src/9/m/9ML-0.1.0/nineml/examples/AL/doc_tutorials/example1c_izikevich_transition.py   9ML(Download)
        event_ports = [ al.EventPort('spikeoutput', mode='send') ],
 
        dynamics = al.Dynamics( regimes = [regime], 
                                state_variables = ['V','U'])
        )

src/9/m/9ML-0.1.0/nineml/examples/AL/doc_tutorials/example3_cobasynapse.py   9ML(Download)
                     name = "CoBaSynapse", 
                     dynamics = al.Dynamics(
                         regimes = [cond_decay], 
                         aliases = ["I := g*(E-V)"],
                         ),

src/9/m/9ML-0.1.0/nineml/examples/AL/components_done/morris_lecar.py   9ML(Download)
    c1 = al.ComponentClass("MorrisLecar", 
                            dynamics = al.Dynamics(
                                        regimes = [r],
 
                                        aliases = [

src/9/m/9ML-0.1.0/nineml/examples/AL/doc_tutorials/example2_leaky_iaf_2regime.py   9ML(Download)
leaky_iaf = al.ComponentClass("LeakyIAF",
                dynamics = al.Dynamics( 
                                regimes=[r1,r2], 
                                state_variables= ['V','tspike'],
 

src/9/m/9ML-0.1.0/nineml/examples/AL/doc_tutorials/example1b_izikevich_statevariables.py   9ML(Download)
        event_ports = [ al.EventPort('spikeoutput', mode='send') ],
 
        dynamics = al.Dynamics( regimes = [regime], 
                                state_variables = ['V','U'])
        )

src/9/m/9ML-0.1.0/nineml/abstraction_layer/visitors/cloner.py   9ML(Download)
    def visit_dynamics(self, dynamics, **kwargs):
        return nineml.abstraction_layer.Dynamics( 
                         regimes =       [ r.accept_visitor(self, **kwargs) for r in dynamics.regimes ],
                         aliases =          [ a.accept_visitor(self, **kwargs) for a in dynamics.aliases ],
                         state_variables =  [ s.accept_visitor(self, **kwargs) for s in dynamics.state_variables ] )

src/9/m/9ML-0.1.0/test/unit/nineml_test/abstraction_layer/component/component_test.py   9ML(Download)
    def test_regimes(self):
        from nineml.abstraction_layer import ComponentClass, Regime, On, Dynamics
        from nineml.exceptions import NineMLRuntimeError
 
        c = ComponentClass( name='cl', )
        c = ComponentClass( name='cl', 
                            dynamics = Dynamics(
                                regimes = [
                                    Regime('dX/dt=0',
                                           name = 'r1',
    def test_state_variables(self):
        from nineml.abstraction_layer import ComponentClass, Regime, On, Dynamics
        from nineml.exceptions import NineMLRuntimeError
        # No parameters; nothing to infer
        c = ComponentClass(name='cl')
        c = ComponentClass( name='cl', 
                            dynamics = Dynamics(
                                regimes = [
                                    Regime('dX1/dt=0',
                                           name = 'r1',
    def test_transitions(self):
        from nineml.abstraction_layer import ComponentClass, Regime, On, Dynamics
        from nineml.exceptions import NineMLRuntimeError
 
        c = ComponentClass( name='cl', 

src/9/m/9ML-0.1.0/test/unit/nineml_test/abstraction_layer/component/componentqueryer_test.py   9ML(Download)
        #from nineml.abstraction_layer.component.componentqueryer import ComponentQueryer
 
        from nineml.abstraction_layer import ComponentClass, Regime, On, Dynamics
        from nineml.exceptions import NineMLRuntimeError