Skip to content

Commit

Permalink
test: added test for changing two gains
Browse files Browse the repository at this point in the history
  • Loading branch information
gtdang committed Sep 26, 2024
1 parent 7e0fb6a commit 0ba18b7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions hnn_core/tests/test_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,19 @@ def test_synaptic_gains():
else:
assert conn['nc_dict']['gain'] == 1.0

# Two argument check
net.update_weights(i_e=0.5, i_i=0.25, copy=False)
for conn in net.connectivity:
if (conn['src_type'] in i_cell_names and
conn['target_type'] in e_cell_names):
assert conn['nc_dict']['gain'] == 0.5
elif (conn['src_type'] in i_cell_names and
conn['target_type'] in i_cell_names):
assert conn['nc_dict']['gain'] == 0.25
else:
assert conn['nc_dict']['gain'] == 1.0



class TestPickConnection:
"""Tests for the pick_connection function."""
Expand Down

0 comments on commit 0ba18b7

Please sign in to comment.