66268ffdc847e64216114871bd4169ad7872966a,snntoolbox/simulation/target_simulators/pyNN_target_sim.py,SNN,simulate,#SNN#,134

Before Change


            raise NotImplementedError
        else:
            constant_input_currents = kwargs[str("x_b_l")].flatten()
            try:
                for neuron_idx, neuron in enumerate(self.layers[0]):
                    // TODO: Implement constant input currents.
                    neuron.current = constant_input_currents[neuron_idx]
            except AttributeError:
                raise NotImplementedError

        self.sim.run(self._duration - self._dt)

        output_b_l_t = self.get_recorded_vars(self.layers)

After Change


        if self.data_format == "channels_last" and data.ndim == 4:
            data = np.moveaxis(data, 3, 1)

        x_flat = np.ravel(data)
        if self._poisson_input:
            self.layers[0].set(rate=list(x_flat / self.rescale_fac * 1000))
        elif self._dataset_format == "aedat":
            raise NotImplementedError
        else:
            spike_times = \
                [np.linspace(0, self._duration, self._duration * amplitude)
                 for amplitude in x_flat]
            self.layers[0].set(spike_times=spike_times)

        self.sim.run(self._duration - self._dt,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 66268ffdc847e64216114871bd4169ad7872966a
Time: 2019-04-11
Author: bodo.rueckauer@intel.com
File Name: snntoolbox/simulation/target_simulators/pyNN_target_sim.py
Class Name: SNN
Method Name: simulate


Project Name: nilearn/nilearn
Commit Name: 9b9095f877f603d91495c72f91e4fddf61f1724e
Time: 2019-07-22
Author: jerome@dockes.org
File Name: examples/02_decoding/plot_haxby_stimuli.py
Class Name:
Method Name:


Project Name: ilastik/ilastik
Commit Name: de807f39aed300bc07e1eb76d39a2c68838298ab
Time: 2016-02-08
Author: bergs@janelia.hhmi.org
File Name: lazyflow/operators/opFilterLabels.py
Class Name:
Method Name: remove_wrongly_sized_connected_components


Project Name: pymc-devs/pymc3
Commit Name: f565c6fccb4dd503f13f01146d0a6c841c0e13f6
Time: 2016-10-03
Author: becker.mr@gmail.com
File Name: pymc3/diagnostics.py
Class Name:
Method Name: effective_n