Skip to content

Commit

Permalink
Update test for better code coverage and bufix with the gid (#937)
Browse files Browse the repository at this point in the history
* Update test for better code coverage
  - apply suggestion from review in #927
* fix the test : gid is pc.id()+1 and not pc.id()
  • Loading branch information
pramodk committed Jan 23, 2021
1 parent 6dab820 commit 8e10742
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/coreneuron/test_spikes.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ def test_spikes(use_mpi4py=False, use_nrnmpi_init=False, file_mode=False):
# NEURON run
nrn_spike_t = h.Vector()
nrn_spike_gids = h.Vector()
pc.spike_record(-1, nrn_spike_t, nrn_spike_gids)

# rank 0 record spikes for all gid while others
# for specific gid. this is for better test coverage.
pc.spike_record(-1 if pc.id() == 0 else (pc.id()+1), nrn_spike_t, nrn_spike_gids)

h.run()

Expand Down

0 comments on commit 8e10742

Please sign in to comment.