From 8de2e8b6625448c4ad7704a8271cd478c139d498 Mon Sep 17 00:00:00 2001 From: Andrew Gait Date: Wed, 24 Aug 2022 16:51:51 +0100 Subject: [PATCH 1/3] Use the right model name to set neurons per core --- examples/synfire_if_cond_exp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/synfire_if_cond_exp.py b/examples/synfire_if_cond_exp.py index 269cb0b1..ac01acc7 100644 --- a/examples/synfire_if_cond_exp.py +++ b/examples/synfire_if_cond_exp.py @@ -23,7 +23,7 @@ runtime = 5000 p.setup(timestep=1.0, min_delay=1.0) nNeurons = 200 # number of neurons in each population -p.set_number_of_neurons_per_core(p.IF_curr_exp, nNeurons / 2) +p.set_number_of_neurons_per_core(p.IF_cond_exp, nNeurons / 2) cell_params_lif = {'cm': 0.25, 'i_offset': 0.0, From c911ea822440987fc642d423a0d44fa5c4c321ad Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Thu, 25 Aug 2022 11:29:43 +0100 Subject: [PATCH 2/3] install-matplotlib earlier --- .github/workflows/python_actions.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python_actions.yml b/.github/workflows/python_actions.yml index 4db78578..56983456 100644 --- a/.github/workflows/python_actions.yml +++ b/.github/workflows/python_actions.yml @@ -41,6 +41,8 @@ jobs: - name: Install pip, etc uses: ./support/actions/python-tools + - name: Install matplotlib + uses: ./support/actions/install-matplotlib - name: Checkout SpiNNaker Dependencies uses: ./support/actions/checkout-spinn-deps with: @@ -50,8 +52,6 @@ jobs: install: true - name: Setup PyNN uses: ./support/actions/pynn-setup - - name: Install matplotlib - uses: ./support/actions/install-matplotlib - name: install test requirements as no setup run: pip install -r requirements-test.txt - name: Test with pytest From 588d6b51653826fefcd4295b2b0c5f08c74ec321 Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Thu, 25 Aug 2022 11:51:43 +0100 Subject: [PATCH 3/3] flake8 --- examples/extra_models_examples/LGN_Izhikevich.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/extra_models_examples/LGN_Izhikevich.py b/examples/extra_models_examples/LGN_Izhikevich.py index a779b7df..fd86db17 100644 --- a/examples/extra_models_examples/LGN_Izhikevich.py +++ b/examples/extra_models_examples/LGN_Izhikevich.py @@ -65,7 +65,7 @@ def calc_irregularity(segment): irregularity = 0 isi_array = [] for i in range(len(segment.spiketrains)): - if(len(segment.spiketrains[i]) > 2): + if len(segment.spiketrains[i]) > 2: isi_array.append([]) for j in range(len(segment.spiketrains[i])-1): isi_array[-1].append(