From 1fb51cce0e3df7897024a021b5cc0f56a2f3f4a4 Mon Sep 17 00:00:00 2001 From: George Dang <53052793+gtdang@users.noreply.github.com> Date: Tue, 22 Oct 2024 14:59:23 -0400 Subject: [PATCH] refactor: updated default dict init in get_synaptic_gains --- hnn_core/network.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hnn_core/network.py b/hnn_core/network.py index eafdc3714..781717aff 100644 --- a/hnn_core/network.py +++ b/hnn_core/network.py @@ -1543,9 +1543,7 @@ def get_synaptic_gains(self): dict: A dictionary with the connection types ('e_e', 'e_i', 'i_e', 'i_i') as keys and their corresponding gain values. """ - # Initialize gain values with default gain of 1.0 - values = {k: 1.0 for k in ('e_e', 'e_i', 'i_e', 'i_i')} - + values = {} e_cells, i_cells = _get_cell_index_by_synapse_type(self) # Define the connection types and source/target cell indexes