forked from INM-6/multi-area-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_example_fullscale.py
37 lines (29 loc) · 984 Bytes
/
run_example_fullscale.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import numpy as np
import os
from multiarea_model import MultiAreaModel
from start_jobs import start_job
from config import submit_cmd, jobscript_template
from config import base_path
"""
Example script showing how to simulate the multi-area model
on a cluster.
We choose the same configuration as in
Fig. 3 of Schmidt et al. (2018).
"""
"""
Full model. Needs to be simulated with sufficient
resources, for instance on a compute cluster.
"""
d = {}
network_params = {'N_scaling': 1.,
'K_scaling': 1.}
sim_params = {'t_sim': 2000.,
'num_processes': 720,
'local_num_threads': 1}
M = MultiAreaModel(network_params, simulation=True,
sim_spec=sim_params,
theory=True)
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)