Skip to content
Snippets Groups Projects
Commit 2cdd113e authored by Maximilian Schmidt, blaustein's avatar Maximilian Schmidt, blaustein
Browse files

Update meanfield tests to integrate_siegert function names

parent 2c9e9879
No related branches found
No related tags found
1 merge request!1Add all necessary files for the multi-area model
...@@ -10,4 +10,4 @@ def test_meanfield(): ...@@ -10,4 +10,4 @@ def test_meanfield():
network_params = {} network_params = {}
theory_params = {} theory_params = {}
M0 = MultiAreaModel(network_params, theory=True, theory_spec=theory_params) M0 = MultiAreaModel(network_params, theory=True, theory_spec=theory_params)
p, r0 = M0.theory.integrate_siegert() p, r0 = M0.theory.integrate_siegert_nest()
...@@ -16,7 +16,7 @@ def test_het_poisson_stat_mf(): ...@@ -16,7 +16,7 @@ def test_het_poisson_stat_mf():
network_params = {} network_params = {}
theory_params = {} theory_params = {}
M0 = MultiAreaModel(network_params, theory=True, theory_spec=theory_params) M0 = MultiAreaModel(network_params, theory=True, theory_spec=theory_params)
p, r0 = M0.theory.integrate_siegert() p, r0 = M0.theory.integrate_siegert_nest()
rates = vector_to_dict(r0[:, -1], M0.area_list, M0.structure) rates = vector_to_dict(r0[:, -1], M0.area_list, M0.structure)
with open('mf_rates.json', 'w') as f: with open('mf_rates.json', 'w') as f:
...@@ -26,7 +26,7 @@ def test_het_poisson_stat_mf(): ...@@ -26,7 +26,7 @@ def test_het_poisson_stat_mf():
'replace_cc_input_source': 'mf_rates.json'}} 'replace_cc_input_source': 'mf_rates.json'}}
theory_params = {} theory_params = {}
M = MultiAreaModel(network_params, theory=True, theory_spec=theory_params) M = MultiAreaModel(network_params, theory=True, theory_spec=theory_params)
p, r = M.theory.integrate_siegert() p, r = M.theory.integrate_siegert_nest()
assert(np.allclose(r0[:, -1], r[:, -1])) assert(np.allclose(r0[:, -1], r[:, -1]))
...@@ -35,7 +35,7 @@ def test_hom_poisson_stat_mf(): ...@@ -35,7 +35,7 @@ def test_hom_poisson_stat_mf():
network_params = {'connection_params': {'replace_cc': 'hom_poisson_stat'}} network_params = {'connection_params': {'replace_cc': 'hom_poisson_stat'}}
theory_params = {} theory_params = {}
M = MultiAreaModel(network_params, theory=True, theory_spec=theory_params) M = MultiAreaModel(network_params, theory=True, theory_spec=theory_params)
p, r = M.theory.integrate_siegert() p, r = M.theory.integrate_siegert_nest()
mu, sigma = M.theory.replace_cc_input() mu, sigma = M.theory.replace_cc_input()
# Test for V1 # Test for V1
......
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