From b1ed600e8cac6cb0f994468c4dd77c3e5bb7d55d Mon Sep 17 00:00:00 2001 From: Simon Oehrl <oehrl@vr.rwth-aachen.de> Date: Sat, 4 Apr 2020 15:21:48 +0200 Subject: [PATCH] Make number of neurons flexible --- examples/brunel_simulation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/brunel_simulation.py b/examples/brunel_simulation.py index a31fe2d..cc60c94 100644 --- a/examples/brunel_simulation.py +++ b/examples/brunel_simulation.py @@ -44,7 +44,6 @@ References # Import all necessary modules for simulation, analysis and plotting. import nest -import nest.raster_plot import signal import math @@ -91,7 +90,8 @@ epsilon = 0.1 # connection probability # Definition of the number of neurons in the network and the number of neuron # recorded from -order = 625 # Should be square, otherwise the position grid becomes invalid +order = int(sys.argv[2]) if len( + sys.argv) > 2 else 2500 # Should be square, otherwise the position grid becomes invalid NE = 4 * order # number of excitatory neurons NI = 1 * order # number of inhibitory neurons N_neurons = NE + NI # number of neurons in total -- GitLab