From d980c6f63b4292636425edb041fa3326a9a50080 Mon Sep 17 00:00:00 2001 From: Nicholas Tolley Date: Mon, 5 Aug 2024 12:26:27 -0400 Subject: [PATCH] fix cell params test --- hnn_core/tests/test_gui.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hnn_core/tests/test_gui.py b/hnn_core/tests/test_gui.py index e2964b317..d26ed63a6 100644 --- a/hnn_core/tests/test_gui.py +++ b/hnn_core/tests/test_gui.py @@ -283,11 +283,14 @@ def test_gui_init_network(): assert np.isclose(_single_simulation['net']._inplane_distance, 1.) assert np.isclose(_single_simulation['net']._layer_separation, 1307.4) - default_network_configuration = read_params(hnn_core_root / 'param' / 'default.json') - net = jones_2009_model(params=default_network_configuration, add_drives_from_params=True) + default_network_configuration = read_params( + hnn_core_root / 'param' / 'default.json') + net = jones_2009_model( + params=default_network_configuration, add_drives_from_params=True) assert _single_simulation['net'] == net + @requires_mpi4py @requires_psutil def test_gui_run_simulation_mpi(setup_gui): @@ -778,7 +781,8 @@ def test_gui_cell_params_widgets(setup_gui): # Check the if the cell params dictionary has been updated cell_params = gui.get_cell_parameters_dict() - assert (len(cell_params['Geometry']) == 20) + assert (len(cell_params['Geometry L2']) == 20) + assert (len(cell_params['Geometry L5']) == 22) assert (len(cell_params['Synapses']) == 12) assert (len(cell_params['Biophysics L2']) == 10) assert (len(cell_params['Biophysics L5']) == 20)