3cf500d2cc6f6e783332b6b316a1973cd9b07e25,brian2/tests/test_spikegenerator.py,,test_spikegenerator_basic,#,17

Before Change


    """
    for codeobj_class in codeobj_classes:
        G = NeuronGroup(10, "v:1", codeobj_class=codeobj_class)
        mon = StateMonitor(G, "v", record=True,
                           codeobj_class=codeobj_class)
        indices = np.array([3, 2, 1, 1, 4, 5])
        times =   np.array([6, 5, 4, 3, 3, 1]) * ms
        SG = SpikeGeneratorGroup(10, indices, times,
                                 codeobj_class=codeobj_class)

After Change


        net = Network(SG, s_mon)
        net.run(5*ms)
        for idx in xrange(5):
            generator_spikes = sorted([(idx, time) for time in times[indices==idx]])
            recorded_spikes = sorted([(idx, time) for time in s_mon.t["i==%d" % idx]])
            assert generator_spikes == recorded_spikes
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: brian-team/brian2
Commit Name: 3cf500d2cc6f6e783332b6b316a1973cd9b07e25
Time: 2014-06-25
Author: marcel.stimberg@ens.fr
File Name: brian2/tests/test_spikegenerator.py
Class Name:
Method Name: test_spikegenerator_basic


Project Name: brian-team/brian2
Commit Name: b0763ca0761f85cb7b19bc2bf59379ae9eaa5511
Time: 2017-07-21
Author: charleetje@gmail.com
File Name: test_GSL.py
Class Name:
Method Name: test_GSL_fixed_timestep_rk4


Project Name: brian-team/brian2
Commit Name: 82de5503f44510ad0b060d723ea80236796a53cd
Time: 2014-09-26
Author: marcel.stimberg@ens.fr
File Name: brian2/tests/test_functions.py
Class Name:
Method Name: test_manual_user_defined_function