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 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( 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,