From ba1cfada38880ec7ba9ace324c3b93de0265fbc8 Mon Sep 17 00:00:00 2001
From: Maximilian Schmidt <max.schmidt@fz-juelich.de>
Date: Tue, 29 May 2018 18:04:28 +0900
Subject: [PATCH] Fix two test

---
 tests/test_analysis.py                  | 2 +-
 tests/test_nest_network_connectivity.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_analysis.py b/tests/test_analysis.py
index 878329a..707ed54 100644
--- a/tests/test_analysis.py
+++ b/tests/test_analysis.py
@@ -20,7 +20,7 @@ def test_analysis():
                       'fullscale_rates': 'fullscale_rates.json'}
     sim_params = {'t_sim': 500.,
                   '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 = MultiAreaModel(network_params, simulation=True, sim_spec=sim_params, analysis=True)
 
diff --git a/tests/test_nest_network_connectivity.py b/tests/test_nest_network_connectivity.py
index 613afa8..1725f68 100644
--- a/tests/test_nest_network_connectivity.py
+++ b/tests/test_nest_network_connectivity.py
@@ -54,5 +54,5 @@ def test_nest_network_connectivity():
         K_ext = []
         for pop in M.structure[area.name]:
             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))
-- 
GitLab