Skip to content
Snippets Groups Projects
Commit 10d6d93f authored by Andrew Davison's avatar Andrew Davison
Browse files

patch to work with Arbor 0.9.0

parent 9793988b
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,7 @@ class PyPynn(PythonPackage):
depends_on("py-pytest", type='test', when="@0.11.0:")
patch('pynn-0.9.6-python3.patch', when='@0.9.6 ^python@3:')
patch('pynn-0.12.2-arbor-0.9.0.patch', when='@0.12.2')
# neuroml and nineml are optional dependencies. Leave out of import_modules to avoid errors in tests
skip_modules = ['pyNN.neuroml', 'pyNN.nineml', 'pyNN.hardware']
......
diff --git a/pyNN/arbor/simulator.py b/pyNN/arbor/simulator.py
index 69c7eab9..528e8d4d 100644
--- a/pyNN/arbor/simulator.py
+++ b/pyNN/arbor/simulator.py
@@ -186,7 +186,7 @@ class State(common.control.BaseState):
comm = arbor.mpi_comm(MPI.COMM_WORLD)
else:
comm = None
- self.arbor_context = arbor.context(alloc, comm)
+ self.arbor_context = arbor.context(alloc, mpi=comm)
# unclear if we can create the recipe now, or if we have to
# construct it only when we've assembled the whole network
self.network = NetworkRecipe()
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment