c7a6759966dfed1c0a94fc1f9af6d34b14dabb27,brian2/tests/test_monitor.py,,test_state_monitor,#,38

Before Change



    // record from a Synapses object (all synapses connecting to neuron 1)
    synapse_mon = StateMonitor(S, "w", record=S[:, 1])
    synapse_mon2 = StateMonitor(S, "w", record=S["j==1"])


    net = Network(G, S, nothing_mon,

After Change


    all_mon = StateMonitor(G, True, record=True)

    // Record synapses with explicit indices (the only way allowed in standalone)
    synapse_mon = StateMonitor(S, "w", record=np.arange(len(G)**2))

    net = Network(G, S, nothing_mon,
                  v_mon, v_mon1,
                  multi_mon, multi_mon1,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: brian-team/brian2
Commit Name: c7a6759966dfed1c0a94fc1f9af6d34b14dabb27
Time: 2015-03-10
Author: marcel.stimberg@inserm.fr
File Name: brian2/tests/test_monitor.py
Class Name:
Method Name: test_state_monitor


Project Name: brian-team/brian2
Commit Name: 7f0846990745938e59a4dc377f4ca81fc26aa12e
Time: 2021-02-18
Author: marcel.stimberg@inserm.fr
File Name: examples/standalone/simple_case.py
Class Name:
Method Name:


Project Name: brian-team/brian2
Commit Name: 7900a9edc7a9b088b980c8d5cd78895d505269f4
Time: 2014-10-30
Author: marcel.stimberg@ens.fr
File Name: examples/compartmental/bipolar_with_inputs2.py
Class Name:
Method Name: