def test_run(self):
     self.assert_not_spin_three()
     results = synfire_npop_run.do_run(n_neurons,
                                       n_pops=n_pops,
                                       neurons_per_core=n_neurons)
     spikes = results
     self.assertEqual(8333, len(spikes))
 def test_run(self):
     self.assert_not_spin_three()
     results = synfire_npop_run.do_run(nNeurons,
                                       n_pops=n_pops,
                                       neurons_per_core=neurons_per_core,
                                       runtime=runtime)
     spikes = results
     self.assertEqual(1666, len(spikes))
     spike_checker.synfire_spike_checker(spikes, nNeurons * n_pops)
#!/usr/bin/python
"""
Synfirechain-like example
"""
import spynnaker.plot_utils as plot_utils
from p8_integration_tests.base_test_case import BaseTestCase
import p8_integration_tests.scripts.synfire_npop_run as synfire_npop_run

n_neurons = 10  # number of neurons in each population
n_pops = 630


class Synfire6300n10pop10pc48chipsNoDelaysSpikeRecording(BaseTestCase):
    def test_run(self):
        self.assert_not_spin_three()
        results = synfire_npop_run.do_run(n_neurons,
                                          n_pops=n_pops,
                                          neurons_per_core=n_neurons)
        spikes = results
        self.assertEqual(8333, len(spikes))


if __name__ == '__main__':
    results = synfire_npop_run.do_run(n_neurons,
                                      n_pops=n_pops,
                                      neurons_per_core=n_neurons)
    spikes = results
    print(len(spikes))
    plot_utils.plot_spikes(spikes)
from p8_integration_tests.base_test_case import BaseTestCase
import p8_integration_tests.scripts.synfire_npop_run as synfire_npop_run

nNeurons = 630  # number of neurons in each population
runtime = 5000
n_pops = 10
neurons_per_core = 30


class Synfire6300n10pop30pc18chipsNoDelaysSpikeRrecording(BaseTestCase):
    def test_run(self):
        self.assert_not_spin_three()
        results = synfire_npop_run.do_run(nNeurons,
                                          n_pops=n_pops,
                                          neurons_per_core=neurons_per_core,
                                          runtime=runtime)
        spikes = results
        self.assertEqual(1666, len(spikes))
        spike_checker.synfire_spike_checker(spikes, nNeurons * n_pops)


if __name__ == '__main__':
    nNeurons = 10  # number of neurons in each population
    results = synfire_npop_run.do_run(nNeurons,
                                      n_pops=n_pops,
                                      neurons_per_core=neurons_per_core,
                                      runtime=runtime)
    spikes = results
    print(len(spikes))
    plot_utils.plot_spikes(spikes)
 def test_run(self):
     synfire_npop_run.do_run(n_neurons,
                             n_pops=n_pops,
                             neurons_per_core=n_neurons)