Skip to content

Commit 7b1c8cd

Browse files
committed
Soften gid lookup
1 parent 7109750 commit 7b1c8cd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/miv_simulator/spikedata.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ def get_env_spike_dict(
5959
for j in range(0, len(ids)):
6060
gid = ids[j]
6161
t = ts[j]
62-
if (not include_artificial) and (gid in env.artificial_cells[pop_name]):
62+
if (not include_artificial) and (
63+
gid in env.artificial_cells.get(pop_name, {})
64+
):
6365
continue
6466
if gid in spkdict:
6567
spkdict[gid].append(t)

0 commit comments

Comments
 (0)