From 874e7a307194a033b528d062739a5ce66877fbc7 Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Mon, 22 Apr 2024 13:45:28 +0100 Subject: [PATCH] update to actions/setup-python@v5 --- .github/workflows/python_actions.yml | 2 +- learning/simple.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python_actions.yml b/.github/workflows/python_actions.yml index db8fa59..56c3af2 100644 --- a/.github/workflows/python_actions.yml +++ b/.github/workflows/python_actions.yml @@ -34,7 +34,7 @@ jobs: path: support - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install pip, etc diff --git a/learning/simple.py b/learning/simple.py index 4ba9ef1..8e29136 100644 --- a/learning/simple.py +++ b/learning/simple.py @@ -16,7 +16,8 @@ import matplotlib.pyplot as plt import pyNN.spiNNaker as sim -sim.setup(timestep=1.0) +sim.setup(timestep=1.0, n_boards_required=1) +machine = sim.get_machine() sim.set_number_of_neurons_per_core(sim.IF_curr_exp, 100) pop_1 = sim.Population(1, sim.IF_curr_exp(), label="pop_1")