b260027ffeab426e802f0c4cbe29bfc322f07d2f,brian2/tests/test_spatialneuron.py,,test_rall,#,130

Before Change


    neuron = SpatialNeuron(morphology=morpho, model=eqs, Cm=Cm, Ri=Ri)
    neuron.v = EL

    rm = 1/(gL * pi * diameter) // membrane resistance per unit length
    ra = (4 * Ri)/(pi * diameter**2) // axial resistance per unit length
    la = sqrt(rm/ra) // space length

    neuron.I[0]=0.02*nA // injecting at the left end
    run(100*ms)

After Change


    neuron.v = EL

    // Check space constant calculation
    assert_allclose(la, neuron.space_constant[0])

    neuron.I[0]=0.02*nA // injecting at the left end
    run(100*ms)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: brian-team/brian2
Commit Name: b260027ffeab426e802f0c4cbe29bfc322f07d2f
Time: 2014-08-12
Author: romain.brette@ens.fr
File Name: brian2/tests/test_spatialneuron.py
Class Name:
Method Name: test_rall


Project Name: scipy/scipy
Commit Name: 6c440cd988c2edbced663e163f55d4f8f1f6f8cb
Time: 2016-12-07
Author: eric.antonio.quintero@gmail.com
File Name: scipy/signal/tests/test_ltisys.py
Class Name: Test_freqresp
Method Name: test_from_state_space


Project Name: scipy/scipy
Commit Name: 53a973c32e695928f0308b03d8f73bb1cb129d2a
Time: 2012-02-06
Author: denis.laxalde@mcgill.ca
File Name: scipy/optimize/tests/test_cobyla.py
Class Name: TestCobyla
Method Name: test_simple