Skip to content

Commit

Permalink
Better test explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
ntolley committed Sep 3, 2021
1 parent caca07b commit 2487c56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hnn_core/tests/test_drives.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ def test_add_drives():
conn = net.connectivity[conn_idx]
num_connections = np.sum(
[len(gids) for gids in conn['gid_pairs'].values()])
# Ensures that AMPA and NMDA connections target the same gids.
# Necessary when weights of both are non-zero.
assert gid_pairs_comparison == conn['gid_pairs']
assert num_connections == \
np.around(len(net.gid_ranges[cell_type]) * n_drive_cells *
Expand Down

0 comments on commit 2487c56

Please sign in to comment.