Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
insite-nest-module
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
LuFG VR VIS
VR-Group
In Situ Pipeline
insite-nest-module
Commits
b1ed600e
Commit
b1ed600e
authored
5 years ago
by
Simon Oehrl
Browse files
Options
Downloads
Patches
Plain Diff
Make number of neurons flexible
parent
fdbcf4c1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/brunel_simulation.py
+2
-2
2 additions, 2 deletions
examples/brunel_simulation.py
with
2 additions
and
2 deletions
examples/brunel_simulation.py
+
2
−
2
View file @
b1ed600e
...
@@ -44,7 +44,6 @@ References
...
@@ -44,7 +44,6 @@ References
# Import all necessary modules for simulation, analysis and plotting.
# Import all necessary modules for simulation, analysis and plotting.
import
nest
import
nest
import
nest.raster_plot
import
signal
import
signal
import
math
import
math
...
@@ -91,7 +90,8 @@ epsilon = 0.1 # connection probability
...
@@ -91,7 +90,8 @@ epsilon = 0.1 # connection probability
# Definition of the number of neurons in the network and the number of neuron
# Definition of the number of neurons in the network and the number of neuron
# recorded from
# 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
NE
=
4
*
order
# number of excitatory neurons
NI
=
1
*
order
# number of inhibitory neurons
NI
=
1
*
order
# number of inhibitory neurons
N_neurons
=
NE
+
NI
# number of neurons in total
N_neurons
=
NE
+
NI
# number of neurons in total
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment