Skip to content

Commit

Permalink
refactor: updated default dict init in get_synaptic_gains
Browse files Browse the repository at this point in the history
  • Loading branch information
gtdang committed Oct 22, 2024
1 parent 05a3cf2 commit 1fb51cc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hnn_core/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1fb51cc

Please sign in to comment.