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
ebcd8104
Commit
ebcd8104
authored
6 years ago
by
Maximilian Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Add output to run_example.py and fix bug
parent
4e82b110
No related branches found
No related tags found
1 merge request
!1
Add all necessary files for the multi-area model
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
run_example.py
+7
-2
7 additions, 2 deletions
run_example.py
with
7 additions
and
2 deletions
run_example.py
+
7
−
2
View file @
ebcd8104
import
numpy
as
np
import
os
from
multiarea_model
import
MultiAreaModel
...
...
@@ -31,12 +32,12 @@ neuron_params = {'V0_mean': -150.,
network_params
=
{
'
N_scaling
'
:
1.
,
'
K_scaling
'
:
1.
,
'
connection_params
'
:
conn_params
,
'
input_params
'
:
input_params
,
'
neuron_params
'
:
neuron_params
}
sim_params
=
{
'
t_sim
'
:
2000.
,
'
num_processes
'
:
720
,
'
local_num_threads
'
:
1
,
'
input_params
'
:
input_params
,
'
recording_dict
'
:
{
'
record_vm
'
:
False
}}
theory_params
=
{
'
dt
'
:
0.1
}
...
...
@@ -46,6 +47,8 @@ M = MultiAreaModel(network_params, simulation=True,
theory
=
True
,
theory_spec
=
theory_params
)
p
,
r
=
M
.
theory
.
integrate_siegert
()
print
(
"
Mean-field theory predicts an average
"
"
rate of {0:.3f} spikes/s across all populations.
"
.
format
(
np
.
mean
(
r
[:,
-
1
])))
start_job
(
M
.
simulation
.
label
,
submit_cmd
,
jobscript_template
)
...
...
@@ -71,13 +74,13 @@ neuron_params = {'V0_mean': -150.,
network_params
=
{
'
N_scaling
'
:
0.01
,
'
K_scaling
'
:
0.01
,
'
fullscale_rates
'
:
os
.
path
.
join
(
base_path
,
'
tests/fullscale_rates.json
'
),
'
input_params
'
:
input_params
,
'
connection_params
'
:
conn_params
,
'
neuron_params
'
:
neuron_params
}
sim_params
=
{
'
t_sim
'
:
2000.
,
'
num_processes
'
:
1
,
'
local_num_threads
'
:
1
,
'
input_params
'
:
input_params
,
'
recording_dict
'
:
{
'
record_vm
'
:
False
}}
theory_params
=
{
'
dt
'
:
0.1
}
...
...
@@ -87,4 +90,6 @@ M = MultiAreaModel(network_params, simulation=True,
theory
=
True
,
theory_spec
=
theory_params
)
p
,
r
=
M
.
theory
.
integrate_siegert
()
print
(
"
Mean-field theory predicts an average
"
"
rate of {0:.3f} spikes/s across all populations.
"
.
format
(
np
.
mean
(
r
[:,
-
1
])))
M
.
simulation
.
simulate
()
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