Skip to content
Snippets Groups Projects
Commit 7e37845f authored by Maximilian Schmidt's avatar Maximilian Schmidt
Browse files

Add run_simulation.py

parent f0a7e769
No related branches found
No related tags found
1 merge request!1Add all necessary files for the multi-area model
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()
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment