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

Fix two test

parent 48e0c710
No related branches found
No related tags found
1 merge request!1Add all necessary files for the multi-area model
...@@ -20,7 +20,7 @@ def test_analysis(): ...@@ -20,7 +20,7 @@ def test_analysis():
'fullscale_rates': 'fullscale_rates.json'} 'fullscale_rates': 'fullscale_rates.json'}
sim_params = {'t_sim': 500., sim_params = {'t_sim': 500.,
'areas_simulated': ['V1', 'V2']} 'areas_simulated': ['V1', 'V2']}
M = MultiAreaModel(network_params, simulation=True, sim_spec=sim_params, analysis=True) M = MultiAreaModel(network_params, simulation=True, sim_spec=sim_params)
M.simulation.simulate() M.simulation.simulate()
M = MultiAreaModel(network_params, simulation=True, sim_spec=sim_params, analysis=True) M = MultiAreaModel(network_params, simulation=True, sim_spec=sim_params, analysis=True)
......
...@@ -54,5 +54,5 @@ def test_nest_network_connectivity(): ...@@ -54,5 +54,5 @@ def test_nest_network_connectivity():
K_ext = [] K_ext = []
for pop in M.structure[area.name]: for pop in M.structure[area.name]:
K_ext.append(M.K[area.name][pop]['external']['external']) K_ext.append(M.K[area.name][pop]['external']['external'])
target_rates = np.array(K_ext) * M.simulation.params['input_params']['rate_ext'] target_rates = np.array(K_ext) * M.params['input_params']['rate_ext']
assert(np.allclose(poisson_rates, target_rates)) assert(np.allclose(poisson_rates, target_rates))
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