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
de97754f
Commit
de97754f
authored
6 years ago
by
Maximilian Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Add documentation to run_simulation.py, fix typos and bug in run_example.py
parent
b6e39fea
No related branches found
No related tags found
1 merge request
!1
Add all necessary files for the multi-area model
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
run_example.py
+1
-1
1 addition, 1 deletion
run_example.py
run_simulation.py
+13
-0
13 additions, 0 deletions
run_simulation.py
start_jobs.py
+1
-1
1 addition, 1 deletion
start_jobs.py
with
15 additions
and
2 deletions
run_example.py
+
1
−
1
View file @
de97754f
F
rom
multiarea_model
import
MultiAreaModel
f
rom
multiarea_model
import
MultiAreaModel
from
start_jobs
import
start_job
from
config
import
submit_cmd
,
jobscript_template
...
...
This diff is collapsed.
Click to expand it.
run_simulation.py
+
13
−
0
View file @
de97754f
"""
This script is used to run a simulation from the given command-line
arguments:
1. Label of the simulation
2. Label of the network to be simulated
It initializes the network class and then runs the simulate method of
the simulation class instance.
This script should be used in the `jobscript_template` defined in the
config.py file. See config_template.py.
"""
import
json
import
nest
import
os
...
...
This diff is collapsed.
Click to expand it.
start_jobs.py
+
1
−
1
View file @
de97754f
...
...
@@ -24,7 +24,7 @@ def start_job(label, submit_cmd, jobscript_template, sumatra=False, reason=None,
identified by the label.
submit_cmd : str
Submit command of the queueing system used.
job
_
script_template : formatted str
jobscript_template : formatted str
Formatted string defining the template for the job script.
Can include the following keyword arguments:
sim_dir : str
...
...
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