70c3efbc796b13121395468ca6fe50e5fdc3570e,snntoolbox/simulation/plotting.py,,plot_spiketrains,#Any#Any#Any#,815

Before Change


        // Spikes at time 0 are forbidden (and indeed prevented in the
        // simulation), because of this difficulty to distinguish them from a 0
        // entry indicating no spike.
        spiketrain = spiketrain[spiketrain.nonzero()]
        // Create an array of the same size as the spikelist containing just
        // the neuron index.
        y = np.ones_like(spiketrain) * neuron
        plt.plot(spiketrain, y, ".")
    plt.title("Spiketrains \n of layer {}".format(layer[1]))
    plt.xlabel("time [ms]")
    plt.ylabel("neuron index")

After Change


    plt.title("Spiketrains \n of layer {}".format(layer[1]))
    plt.xlabel("time [ms]")
    plt.ylabel("neuron index")
    plt.xlim(min([dt, np.min(layer[0])]), (duration + 1) * dt)
    if path is not None:
        filename = "7Spiketrains"
        plt.savefig(os.path.join(path, filename), bbox_inches="tight")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 70c3efbc796b13121395468ca6fe50e5fdc3570e
Time: 2018-02-02
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/simulation/plotting.py
Class Name:
Method Name: plot_spiketrains


Project Name: HazyResearch/fonduer
Commit Name: 1d6771befb95f4ae94f308899633294a003dcfd6
Time: 2020-07-24
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/utils/data_model_utils/structural.py
Class Name:
Method Name: common_ancestor


Project Name: HazyResearch/fonduer
Commit Name: 1d6771befb95f4ae94f308899633294a003dcfd6
Time: 2020-07-24
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/utils/data_model_utils/structural.py
Class Name:
Method Name: lowest_common_ancestor_depth