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
7e37845f
Commit
7e37845f
authored
6 years ago
by
Maximilian Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Add run_simulation.py
parent
f0a7e769
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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_simulation.py
+24
-0
24 additions, 0 deletions
run_simulation.py
with
24 additions
and
0 deletions
run_simulation.py
0 → 100644
+
24
−
0
View file @
7e37845f
import
json
import
nest
import
os
import
sys
from
config
import
data_path
from
multiarea_model
import
MultiAreaModel
label
=
sys
.
argv
[
1
]
network_label
=
sys
.
argv
[
2
]
fn
=
os
.
path
.
join
(
data_path
,
label
,
'
_
'
.
join
((
'
custom_params
'
,
label
,
str
(
nest
.
Rank
()))))
with
open
(
fn
,
'
r
'
)
as
f
:
custom_params
=
json
.
load
(
f
)
os
.
remove
(
fn
)
M
=
MultiAreaModel
(
network_label
,
simulation
=
True
,
sim_spec
=
custom_params
[
'
sim_params
'
])
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