Skip to content

Commit

Permalink
refactor: flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
gtdang committed Sep 26, 2024
1 parent 8cd6e47 commit 377299c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hnn_core/tests/test_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -947,10 +947,11 @@ def test_synaptic_gains():
else:
assert conn['nc_dict']['gain'] == 1.0

nb_updated = NetworkBuilder(net)
# Check weights are altered
def _get_weight(nb, conn_name, idx=0):
return nb.ncs[conn_name][idx].weight[0]

nb_updated = NetworkBuilder(net)
# i_e check
assert (_get_weight(nb_updated, 'L2Basket_L2Pyr_gabaa') /
_get_weight(nb_base, 'L2Basket_L2Pyr_gabaa')) == 0.5
Expand Down

0 comments on commit 377299c

Please sign in to comment.