From 05ab75dd2c23ceae95ce34410bf947ade54d0df1 Mon Sep 17 00:00:00 2001 From: Nicholas Tolley Date: Wed, 25 Oct 2023 14:31:32 -0400 Subject: [PATCH] fix key errors --- hnn_core/params_default.py | 1 + hnn_core/tests/test_cell_response.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hnn_core/params_default.py b/hnn_core/params_default.py index 502f92f4c..dde86cf88 100644 --- a/hnn_core/params_default.py +++ b/hnn_core/params_default.py @@ -149,6 +149,7 @@ def get_params_default(nprox=2, ndist=1): 'record_isoma': 0, # whether to record somatic currents 'record_vsec': 0, # whether to record voltages 'record_isec': 0, # whether to record currents + 'record_dcell': 0, # whether to record cell dipoles # numerics # N_trials of 1 means that seed is set by rank diff --git a/hnn_core/tests/test_cell_response.py b/hnn_core/tests/test_cell_response.py index ce0373db1..802b4b1c6 100644 --- a/hnn_core/tests/test_cell_response.py +++ b/hnn_core/tests/test_cell_response.py @@ -43,7 +43,7 @@ def test_cell_response(tmp_path): # reset clears all recorded variables, but leaves simulation time intact assert len(cell_response.times) == len(sim_times) sim_attributes = ['_spike_times', '_spike_gids', '_spike_types', - '_vsec', '_isec'] + '_vsec', '_isec', '_dcell'] net_attributes = ['_times', '_cell_type_names'] # `Network.__init__` # creates these check that we always know which response attributes are # simulated see #291 for discussion; objective is to keep cell_response