Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
multi-area-model
Manage
Activity
Members
Labels
Plan
Issues
7
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IAS-6
multi-area-model
Commits
f55af6f9
Commit
f55af6f9
authored
4 years ago
by
Alexander van Meegen
Browse files
Options
Downloads
Patches
Plain Diff
Fix external siegert neurons
parent
796d840e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!15
Fix external siegert neurons
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
multiarea_model/default_params.py
+1
-1
1 addition, 1 deletion
multiarea_model/default_params.py
multiarea_model/theory.py
+4
-3
4 additions, 3 deletions
multiarea_model/theory.py
with
5 additions
and
4 deletions
multiarea_model/default_params.py
+
1
−
1
View file @
f55af6f9
...
...
@@ -281,7 +281,7 @@ theory_params = {'neuron_params': neuron_params,
# The simulation time of the mean-field theory integration
'
T
'
:
50.
,
# The time step of the mean-field theory integration
'
dt
'
:
0.1
,
'
dt
'
:
0.
0
1
,
# Time interval for recording the trajectory of the mean-field calcuation
# If None, then the interval is set to dt
'
rec_interval
'
:
None
}
...
...
This diff is collapsed.
Click to expand it.
multiarea_model/theory.py
+
4
−
3
View file @
f55af6f9
...
...
@@ -78,13 +78,14 @@ class Theory:
'
use_wfr
'
:
False
,
'
print_time
'
:
False
,
'
overwrite_files
'
:
True
})
nest
.
SetDefaults
(
'
siegert_neuron
'
,
self
.
NP
)
# create neurons for external drive
drive
=
nest
.
Create
(
'
siegert_neuron
'
,
1
,
params
=
{
'
rate
'
:
rate_ext
,
'
mean
'
:
rate_ext
})
# create neurons representing populations
neurons
=
nest
.
Create
(
'
siegert_neuron
'
,
dim
,
params
=
self
.
NP
)
neurons
=
nest
.
Create
(
'
siegert_neuron
'
,
dim
)
# external drive
syn_dict
=
{
'
drift_factor
'
:
tau
*
np
.
array
([
K
[:,
-
1
]
*
J
[:,
-
1
]]).
transpose
(),
'
diffusion_factor
'
:
tau
*
np
.
array
([
K
[:,
-
1
]
*
J
[:,
-
1
]
**
2
]).
transpose
(),
...
...
@@ -132,7 +133,7 @@ class Theory:
interval
=
self
.
params
[
'
rec_interval
'
]
if
interval
is
None
:
interval
=
dt
multimeter
=
nest
.
Create
(
'
multimeter
'
,
params
=
{
'
record_from
'
:
[
'
rate
'
],
'
interval
'
:
interval
,
'
to_screen
'
:
False
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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