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

All Samples(97)  |  Call(89)  |  Derive(0)  |  Import(8)

src/9/m/9ML-0.1.0/nineml/examples/AL/components_done/iaf.py   9ML(Download)
                            name = "subthresholdregime",
                            time_derivatives = ["dV/dt = ( gl*( vrest - V ) + ISyn)/(cm)"],
                            transitions = al.On("V > vthresh",
                                                     do=["tspike = t",
                                                         "V = vreset",
                            name = "refractoryregime",
                            time_derivatives = ["dV/dt = 0"],
                            transitions = [ al.On("t >= tspike + taurefrac",
                                                      to="subthresholdregime") ],
                            )

src/9/m/9ML-0.1.0/nineml/examples/AL/components_done/if_cond_exp.py   9ML(Download)
                "dgE/dt = -gE/tau_syn_E",
                "dgI/dt = -gI/tau_syn_I",],
            transitions = (al.On("V > v_thresh",
                                     do=["t_spike = t",
                                         "V = v_reset",
                                         al.OutputEvent('spikeoutput')],
                                     to="refractory_regime"),
                           al.On('excitatory', do="gE=gE+q"),
                           al.On('inhibitory', do="gI=gI+q"),
                "dgE/dt = -gE/tau_syn_E",
                "dgI/dt = -gI/tau_syn_I",],
            transitions = (al.On("t >= t_spike + tau_refrac", to="sub_threshold_regime"),
                           al.On('excitatoryspike', do="gE=gE+q"),
                           al.On('inhibitoryspike', do="gI=gI+q"),

src/9/m/9ML-0.1.0/nineml/examples/AL/doc_tutorials/example2_leaky_iaf_2regime.py   9ML(Download)
import nineml.abstraction_layer as al
r1 = al.Regime(
     name="sub-threshold-regime",
     time_derivatives = ["dV/dt = (-gL*(V-vL) + I)/C",],
     transitions=[ al.On("V>Vth",
 
r2 = al.Regime(name="refractory-regime",
        transitions=[al.On("t >= tspike + trefractory",
                        to="sub-threshold-regime"), ],
     )

src/9/m/9ML-0.1.0/nineml/examples/AL/components_done/leaky_iaf.py   9ML(Download)
def get_component():
    subthreshold_regime = al.Regime(
        name="subthreshold_regime",
        time_derivatives =[ "dV/dt = (-gL*(V-vL) + Isyn)/C",],
        transitions = [al.On("V> theta",
 
    refractory_regime = al.Regime(
        transitions = [al.On("t >= t_spike + t_ref",
                                to='subthreshold_regime')],
        name="refractory_regime"

src/9/m/9ML-0.1.0/nineml/examples/AL/components_done/iaf_sfa_relref.py   9ML(Download)
            "dg_rr/dt = -g_rr/tau_rr",
        ],
        transitions = al.On("V> theta",
                                do=["g_sfa =g_sfa +  q_sfa", "g_rr =g_rr + q_rr", "t_spike = t",
                                    al.OutputEvent('spikeoutput')],
    refractory_regime = al.Regime(
        name="refractory_regime",
        transitions = al.On("t >= t_spike + t_ref",
                                to='subthreshold_regime'),
        )

src/9/m/9ML-0.1.0/nineml/examples/AL/components_done/aeIF.py   9ML(Download)
                                    "dV/dt = -g_L*(V-E_L)/C_m + g_L*Delta*exp((V-V_T)/Delta-w/S)/C_m+ Isyn/C_m",
                                    "dw/dt = (a*(V-E_L)-w)/tau_w", ],
                                transitions=al.On("V > V_T",
                                               do=["V = E_L",
                                                   "w = w + b",
                         al.Regime(                              
                                name="refractoryregime",
                                transitions=al.On("t>=tspike+trefractory",
                                               to="subthresholdregime"),
                                )    

src/9/m/9ML-0.1.0/nineml/examples/AL/components_done/izhikevich.py   9ML(Download)
                "dU/dt = a*(b*V - U)",],
 
            transitions = [al.On("V > theta",
                              do =[ "V = c", 
                                    "U =  U+ d", 

src/p/y/pydstool-HEAD/examples/NineML_import_test.py   pydstool(Download)
        "dh/dt = (hinf-h)/htau",
        "dV/dt = (ina + ik + il + Isyn)/C",
        transitions=al.On("V > theta",do=al.SpikeOutputEvent() )
    )
 
                                    "dV/dt = -g_L*(V-E_L)/C_m + Isyn/C_m + g_L*Delta*exp((V-V_T)/Delta-w/S)/C_m",
                                    "dw/dt = (a*(V-E_L)-w)/tau_w", ],
                                transitions=al.On("V > V_T",
                                               do=["V = E_L",
                                                   "w = w + b",
                         al.Regime(
                                name="refractoryregime",
                                transitions=al.On("t>=tspike+trefractory",
                                               to="subthresholdregime"),
                                )

src/9/m/9ML-0.1.0/nineml/examples/AL/doc_tutorials/example1c_izikevich_transition.py   9ML(Download)
                        'dU/dt = a*(b*V - U)'
                                ],
             transitions = [ al.On( 'V > a' ,
                                    do = [  'V = c', 
                                            'U = U + d ',

src/9/m/9ML-0.1.0/nineml/examples/AL/doc_tutorials/example3_cobasynapse.py   9ML(Download)
import nineml.abstraction_layer as al
 
cond_decay = al.Regime(name = 'default',
                    time_derivatives = ["dg/dt = -g/tau"],
                    transitions=[ al.On( al.InputEvent('spikeinput'), do="g = g + q")]

  1 | 2  Next